From unknown Fri Jun 20 05:37:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8653 <8653@debbugs.gnu.org> To: bug#8653 <8653@debbugs.gnu.org> Subject: Status: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... Reply-To: bug#8653 <8653@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:37:18 +0000 retitle 8653 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... reassign 8653 emacs submitter 8653 "Drew Adams" severity 8653 wishlist tag 8653 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 11 11:34:00 2011 Received: (at submit) by debbugs.gnu.org; 11 May 2011 15:34:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKBQG-0003BI-Cw for submit@debbugs.gnu.org; Wed, 11 May 2011 11:34:00 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKBQE-0003B6-Bf for submit@debbugs.gnu.org; Wed, 11 May 2011 11:33:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKBQ8-0003Hs-Bw for submit@debbugs.gnu.org; Wed, 11 May 2011 11:33:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:49390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKBQ8-0003Ho-AO for submit@debbugs.gnu.org; Wed, 11 May 2011 11:33:52 -0400 Received: from eggs.gnu.org ([140.186.70.92]:56417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKBQ7-0002Q7-AQ for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 11:33:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKBQ6-0003HX-6T for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 11:33:51 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:17628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKBQ6-0003HJ-0t for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 11:33:50 -0400 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4BFXkbi018556 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 11 May 2011 15:33:48 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4BFXixx021641 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 11 May 2011 15:33:46 GMT Received: from abhmt003.oracle.com (abhmt003.oracle.com [141.146.116.12]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4BFXdAN016164 for ; Wed, 11 May 2011 10:33:39 -0500 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 11 May 2011 08:33:37 -0700 From: "Drew Adams" To: Subject: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... Date: Wed, 11 May 2011 08:33:37 -0700 Message-ID: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcwP8Mv0xxER6BAPSIe282nTqGTmIA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090209.4DCAAC5C.00F1:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) 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 -Q, then load cygwin-mount.el then setup-cygwin.el, found here: http://www.emacswiki.org/cgi-bin/wiki?action=index;match=%5C.(el%7Ctar)(%5C.gz)% 3F%24 In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-05-10 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt --cflags -Ic:/build/include' From debbugs-submit-bounces@debbugs.gnu.org Wed May 11 14:06:20 2011 Received: (at 8653) by debbugs.gnu.org; 11 May 2011 18:06:20 +0000 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 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 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) 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) Date: Wed, 11 May 2011 21:05:09 +0300 From: Eli Zaretskii Subject: Re: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... In-reply-to: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> X-012-Sender: halo1@inter.net.il To: Drew Adams Message-id: <83hb91glka.fsf@gnu.org> References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8653 Cc: 8653@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > 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). From debbugs-submit-bounces@debbugs.gnu.org Wed May 11 14:25:11 2011 Received: (at 8653) by debbugs.gnu.org; 11 May 2011 18:25:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKE5v-00087i-Bm for submit@debbugs.gnu.org; Wed, 11 May 2011 14:25:11 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKE5u-00087W-K5 for 8653@debbugs.gnu.org; Wed, 11 May 2011 14:25:10 -0400 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4BIP2Ud013768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 11 May 2011 18:25:04 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4BIP1dm026651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 May 2011 18:25:02 GMT Received: from abhmt010.oracle.com (abhmt010.oracle.com [141.146.116.19]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4BIOuUe003616; Wed, 11 May 2011 13:24:56 -0500 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 11 May 2011 11:24:55 -0700 From: "Drew Adams" To: "'Eli Zaretskii'" References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> <83hb91glka.fsf@gnu.org> Subject: RE: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... Date: Wed, 11 May 2011 11:24:58 -0700 Message-ID: <81E08E06622F4A28A0D7FD619619657E@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <83hb91glka.fsf@gnu.org> Thread-Index: AcwQBiHPFW/c7WfRRKKMm92b275a1gAAl00w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090204.4DCAD481.0004:SCFSTAT5015188,ss=1,fgs=0 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 8653 Cc: 8653@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > > 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). Yes, that's what I figured you'd say. Feel free to close the bug. Or feel free to keep it open as an enhancement request. From debbugs-submit-bounces@debbugs.gnu.org Wed May 11 20:54:44 2011 Received: (at 8653) by debbugs.gnu.org; 12 May 2011 00:54:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKKAu-0000GP-ED for submit@debbugs.gnu.org; Wed, 11 May 2011 20:54:44 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKKAr-0000GA-Hu for 8653@debbugs.gnu.org; Wed, 11 May 2011 20:54:42 -0400 Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:48477 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QKKAl-00056q-Tc; Wed, 11 May 2011 20:54:36 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 4FBC566152; Wed, 11 May 2011 21:54:32 -0300 (ART) From: Stefan Monnier To: "Drew Adams" Subject: Re: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... Message-ID: References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> Date: Wed, 11 May 2011 21:54:32 -0300 In-Reply-To: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> (Drew Adams's message of "Wed, 11 May 2011 08:33:37 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 8653 Cc: 8653@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) > 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 Let me add to Eli's answer [tho, as someone whose experience with Windows only goes as far as "install firefox&putty to access non-Windows machines"]: IIUC the expansion of ~ (to something like "C:/...") is performed by the shell used to run grep, and the conversion to "/cygdrive/c/..." is performed by the particular grep you use (presumably cygwin's). So to fix the problem at hand we need: - add something like cygwin-mount.el to Emacs. - change grep.el to use abbreviate-file-name. Contrary to Eli, I'm not fundamentally opposed to including something like cygwin-mount.el in Emacs. As for changing grep.el, it could be a valid option, tho it would either have to be a non-default setting, or be done carefully to minimize the performance impact (M-x grep is already slowish). Of course, another take on it is to change the problem: maybe we could make it easier to run an equivalent command with relative file names. Not knowing how/why you ended up with "M-x grep foo ~/mydir/f*.el", I don't know what could make it easier. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 07:52:46 2011 Received: (at submit) by debbugs.gnu.org; 12 May 2011 11:52:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKURh-0000Co-ML for submit@debbugs.gnu.org; Thu, 12 May 2011 07:52:46 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKURf-0000CW-3V for submit@debbugs.gnu.org; Thu, 12 May 2011 07:52:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKURY-0003NH-VY for submit@debbugs.gnu.org; Thu, 12 May 2011 07:52:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_NUMERIC_HELO, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:45599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKURY-0003NC-UE for submit@debbugs.gnu.org; Thu, 12 May 2011 07:52:36 -0400 Received: from eggs.gnu.org ([140.186.70.92]:47965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKURY-0001HR-3r for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 07:52:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKURX-0003Mt-2o for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 07:52:36 -0400 Received: from lo.gmane.org ([80.91.229.12]:38782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKURW-0003Ml-TW for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 07:52:35 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QKURT-0004gE-4b for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 13:52:31 +0200 Received: from 193.34.186.16 ([193.34.186.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 May 2011 13:52:31 +0200 Received: from andrewjmoreton by 193.34.186.16 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 May 2011 13:52:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... Date: Thu, 12 May 2011 12:52:18 +0100 Lines: 30 Message-ID: References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> <83hb91glka.fsf@gnu.org> <81E08E06622F4A28A0D7FD619619657E@us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.34.186.16 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:dAyn+sAwdC+7DDQtheN8OF8l/Do= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On Wed 11 May 2011, Drew Adams wrote: >> > 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). > > Yes, that's what I figured you'd say. Feel free to close the bug. > Or feel free to keep it open as an enhancement request. I use cygwin-mount and don't see this problem. Make sure HOME is set in the Windows environment before launching emacs (e.g. HOME=C:\home\ajm), that Cygwin is installed correctly at C:\cygwin, and that the Cygwin mount table is correct (in my case with /home mounted at C:\home). Cygwin will translate HOME to a POSIX path automatically, and grep will be happy. AndyM From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 09:42:42 2011 Received: (at 8653) by debbugs.gnu.org; 12 May 2011 13:42:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKWA6-0002m8-6L for submit@debbugs.gnu.org; Thu, 12 May 2011 09:42:42 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKWA4-0002lv-4e for 8653@debbugs.gnu.org; Thu, 12 May 2011 09:42:40 -0400 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4CDgVag010025 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 May 2011 13:42:34 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4CDgUhF024162 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 May 2011 13:42:31 GMT Received: from abhmt006.oracle.com (abhmt006.oracle.com [141.146.116.15]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4CDgOiG000587; Thu, 12 May 2011 08:42:24 -0500 Received: from dradamslap1 (/10.159.37.175) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 12 May 2011 06:42:23 -0700 From: "Drew Adams" To: "'Stefan Monnier'" References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> Subject: RE: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... Date: Thu, 12 May 2011 06:42:21 -0700 Message-ID: <20E3883FA3924D15B084987F9C9FA71A@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcwQPy9VW7gnxHcFQ/mWoFDSTONTUAAaqixA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 In-Reply-To: X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090208.4DCBE3CA.0086:SCFSTAT5015188,ss=1,fgs=0 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 8653 Cc: 8653@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > > 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 > > Let me add to Eli's answer [tho, as someone whose experience with > Windows only goes as far as "install firefox&putty to access > non-Windows > machines"]: IIUC the expansion of ~ (to something like "C:/...") is > performed by the shell used to run grep, and the conversion to > "/cygdrive/c/..." is performed by the particular grep you use > (presumably cygwin's). > > So to fix the problem at hand we need: > - add something like cygwin-mount.el to Emacs. > - change grep.el to use abbreviate-file-name. > > Contrary to Eli, I'm not fundamentally opposed to including something > like cygwin-mount.el in Emacs. As for changing grep.el, it could be > a valid option, tho it would either have to be a non-default > setting, or > be done carefully to minimize the performance impact (M-x grep is > already slowish). > > Of course, another take on it is to change the problem: maybe we could > make it easier to run an equivalent command with relative file names. > Not knowing how/why you ended up with "M-x grep foo ~/mydir/f*.el", > I don't know what could make it easier. Everything you suggest (possibilities) sounds good to me. Yes, if you use a relative path there is no such problem - e.g., M-x grep ../f*.el I was in a directory far from the intended target. I could have first done `M-x cd', and that's a good workaround. But I just gave the path to `grep' instead. No biggee, but it would be good if the output were cleaner/simpler (assuming not too great a cost). From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 09:58:29 2011 Received: (at submit) by debbugs.gnu.org; 12 May 2011 13:58:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKWPN-0003C3-4m for submit@debbugs.gnu.org; Thu, 12 May 2011 09:58:29 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKWPL-0003Br-6S for submit@debbugs.gnu.org; Thu, 12 May 2011 09:58:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKWPF-000341-Jm for submit@debbugs.gnu.org; Thu, 12 May 2011 09:58:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:55292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKWPF-00033x-IG for submit@debbugs.gnu.org; Thu, 12 May 2011 09:58:21 -0400 Received: from eggs.gnu.org ([140.186.70.92]:41880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKWPE-0006dP-LS for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 09:58:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKWPD-00033f-NK for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 09:58:20 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:40317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKWPD-00033a-FK for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 09:58:19 -0400 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4CDwEuI012588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 May 2011 13:58:16 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4CDwDLo020182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 May 2011 13:58:14 GMT Received: from abhmt003.oracle.com (abhmt003.oracle.com [141.146.116.12]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4CDw7SH020436; Thu, 12 May 2011 08:58:08 -0500 Received: from dradamslap1 (/10.159.37.175) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 12 May 2011 06:58:07 -0700 From: "Drew Adams" To: "'Andy Moreton'" , References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com><83hb91glka.fsf@gnu.org><81E08E06622F4A28A0D7FD619619657E@us.oracle.com> Subject: RE: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... Date: Thu, 12 May 2011 06:58:04 -0700 Message-ID: <4FF6FDF04EA24E6C86D40F9B2D0C32F8@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcwQmy0gl8DRB3pDTr+vTJQxDqaJNwAD9r8w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 In-Reply-To: X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090202.4DCBE779.004C:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > I use cygwin-mount and don't see this problem. > > Make sure HOME is set in the Windows environment before > launching emacs (e.g. HOME=C:\home\ajm), It is. HOME=C:\ > that Cygwin is installed correctly at C:\cygwin, It is. (But is that location really required, for Cygwin itself to work?) > and that the Cygwin mount table is correct (in my case with > /home mounted at C:\home). Dunno how to check that. In bash, cd $HOME and cd ~ take me to /cygdrive/c, if that helps. > Cygwin will translate HOME to a > POSIX path automatically, and grep will be happy. FWIW, I am using an old version of Cygwin, having heard of various problems that some Emacs users with more recent versions. No, I don't have any details about the reported problems or which versions of Cygwin. Just take it as given that I'm not about to change Cygwin versions anytime soon. If there is no problem here with a more recent Cygwin build, then that's good news and we can close this bug. FWIW - My Cygwin version dates from 2006. I don't see any README file or doc and I cannot find how to determine the version #. No, I didn't try googling etc. HTH. From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 10:23:14 2011 Received: (at submit) by debbugs.gnu.org; 12 May 2011 14:23:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKWnK-0003kO-HR for submit@debbugs.gnu.org; Thu, 12 May 2011 10:23:14 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKWnJ-0003kD-HD for submit@debbugs.gnu.org; Thu, 12 May 2011 10:23:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKWnD-0006vH-DU for submit@debbugs.gnu.org; Thu, 12 May 2011 10:23:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:34002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKWnD-0006vD-Bw for submit@debbugs.gnu.org; Thu, 12 May 2011 10:23:07 -0400 Received: from eggs.gnu.org ([140.186.70.92]:43386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKWnC-00035v-D0 for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 10:23:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKWnB-0006uf-E7 for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 10:23:06 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:33146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKWnB-0006ua-8L for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 10:23:05 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QKWnA-0003t0-Ln; Thu, 12 May 2011 10:23:04 -0400 Date: Thu, 12 May 2011 10:23:04 -0400 Message-Id: From: Eli Zaretskii To: Andy Moreton In-reply-to: (message from Andy Moreton on Thu, 12 May 2011 12:52:18 +0100) Subject: Re: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> <83hb91glka.fsf@gnu.org> <81E08E06622F4A28A0D7FD619619657E@us.oracle.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > From: Andy Moreton > 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? From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 10:32:25 2011 Received: (at 8653) by debbugs.gnu.org; 12 May 2011 14:32:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKWwC-0003xY-VU for submit@debbugs.gnu.org; Thu, 12 May 2011 10:32:25 -0400 Received: from mail-pw0-f44.google.com ([209.85.160.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKWwA-0003xL-Vu for 8653@debbugs.gnu.org; Thu, 12 May 2011 10:32:23 -0400 Received: by pwi5 with SMTP id 5so863603pwi.3 for <8653@debbugs.gnu.org>; Thu, 12 May 2011 07:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=O4gqd8C5FVqRD4hS+alqMXys5mlx4w5r5XVtIbDhHhA=; b=R0vXQgClqvPT3wtH2gyqUrEnlYCsIJ8uzAqxXwEvpAGJSP1gFqsHQPtmF8iWrq61h+ htnI3NyEwckq3CJVSMLkhQPyo0Idx47vT/o+jhKxYCS5I8xddAVDNGOHR7DEAbzD4IDK 3mqavE/hchIHUMFSONQnQNGUbVqymp72b5Syg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=q1xDbmbv+twl7RoqGNtrrLvzKeUK7Jwypl3gZLDnWBMutp2/AirteT2Pz8oHHzkAPy PylLkYnzYjKiI6BFI9rCYb24mQ6mCFp0u2PTbENC95CW8Dhgy44Wz9wiQK91zuABc5Tk ebZ3j9E5szPIcfHteu8TP3BToo6ie/SkLdUsQ= Received: by 10.68.6.168 with SMTP id c8mr414280pba.40.1305210736909; Thu, 12 May 2011 07:32:16 -0700 (PDT) Received: from home.jasonrumney.net ([180.75.214.19]) by mx.google.com with ESMTPS id e4sm709958pbj.4.2011.05.12.07.32.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 May 2011 07:32:14 -0700 (PDT) Received: by home.jasonrumney.net (Postfix, from userid 1000) id ACE0397E; Thu, 12 May 2011 22:32:08 +0800 (MYT) From: Jason Rumney To: "Drew Adams" Subject: Re: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> <20E3883FA3924D15B084987F9C9FA71A@us.oracle.com> Date: Thu, 12 May 2011 22:32:08 +0800 In-Reply-To: <20E3883FA3924D15B084987F9C9FA71A@us.oracle.com> (Drew Adams's message of "Thu, 12 May 2011 06:42:21 -0700") Message-ID: <874o503s7r.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8653 Cc: 8653@debbugs.gnu.org, 'Stefan Monnier' X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) "Drew Adams" writes: > No biggee, but it would be good if the output were cleaner/simpler (assuming not > too great a cost). M-x grep is a low level interface to a shell command. It would make more sense to add such niceties to lgrep (i.e. automatically extracting DIR from FILES if DIR is nil) From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 10:34:50 2011 Received: (at submit) by debbugs.gnu.org; 12 May 2011 14:34:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKWyU-00040n-FH for submit@debbugs.gnu.org; Thu, 12 May 2011 10:34:50 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKWyR-00040a-K7 for submit@debbugs.gnu.org; Thu, 12 May 2011 10:34:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKWyL-0008Ue-AY for submit@debbugs.gnu.org; Thu, 12 May 2011 10:34:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_NUMERIC_HELO, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:54953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKWyL-0008Ua-9C for submit@debbugs.gnu.org; Thu, 12 May 2011 10:34:37 -0400 Received: from eggs.gnu.org ([140.186.70.92]:59043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKWyH-0004Nb-8E for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 10:34:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKWyD-0008Tw-CV for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 10:34:33 -0400 Received: from lo.gmane.org ([80.91.229.12]:53327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKWyD-0008To-1Y for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 10:34:29 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QKWyB-0003p9-MN for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 16:34:27 +0200 Received: from 193.34.186.16 ([193.34.186.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 May 2011 16:34:27 +0200 Received: from andrewjmoreton by 193.34.186.16 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 May 2011 16:34:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... Date: Thu, 12 May 2011 15:34:14 +0100 Lines: 54 Message-ID: References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> <83hb91glka.fsf@gnu.org> <81E08E06622F4A28A0D7FD619619657E@us.oracle.com> <4FF6FDF04EA24E6C86D40F9B2D0C32F8@us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.34.186.16 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:Ld7a28YnRDIEJ4VRmiy/cXskHzI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On Thu 12 May 2011, Drew Adams wrote: >> I use cygwin-mount and don't see this problem. >> >> Make sure HOME is set in the Windows environment before >> launching emacs (e.g. HOME=C:\home\ajm), > > It is. HOME=C:\ That's not a good choice (see below) >> that Cygwin is installed correctly at C:\cygwin, > It is. (But is that location really required, for Cygwin itself to > work?) No, but it's the standard approach and removes another source of problems. >> and that the Cygwin mount table is correct (in my case with >> /home mounted at C:\home). > > Dunno how to check that. In bash, cd $HOME and cd ~ take me to /cygdrive/c, if > that helps. Try running 'mount' > FWIW, I am using an old version of Cygwin, having heard of various problems that > some Emacs users with more recent versions. You really should upgrade. If you have Win95/98/Me then you are stuck with the unsupported cygwin 1.5, but otherwise you really should upgrade to Cygwin 1.7. The installer will cope with an upgrade from 1.5, or you can just delete it all and start afresh. Cygwin1.7 works just fine with Win32 emacs. > No, I don't have any details about the reported problems or which versions of > Cygwin. Just take it as given that I'm not about to change Cygwin versions > anytime soon. If there is no problem here with a more recent Cygwin build, then > that's good news and we can close this bug. The problem is your setup - using C:\ as HOME is not a good idea. If you want to shorten the reported paths, add a mount point "/c" mounted at "C:\". Reading the fine manual for the details: - Cygwin 1.7 (current) http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html - Cygwin 1.5 (obsolete) http://cygwin.com/1.5/cygwin-ug-net/index.html > FWIW - My Cygwin version dates from 2006. I don't see any README file or doc > and I cannot find how to determine the version #. No, I didn't try googling > etc. A minimal effort would have found that you need to run 'cygcheck'. AndyM From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 11:10:26 2011 Received: (at submit) by debbugs.gnu.org; 12 May 2011 15:10:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKXWz-0004sp-R3 for submit@debbugs.gnu.org; Thu, 12 May 2011 11:10:26 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKXWw-0004sc-UY for submit@debbugs.gnu.org; Thu, 12 May 2011 11:10:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKXWq-0006C6-Hg for submit@debbugs.gnu.org; Thu, 12 May 2011 11:10:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_NUMERIC_HELO, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:52421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKXWq-0006C2-G5 for submit@debbugs.gnu.org; Thu, 12 May 2011 11:10:16 -0400 Received: from eggs.gnu.org ([140.186.70.92]:50416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKXWp-0007a1-9H for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 11:10:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKXWj-0006BN-Ei for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 11:10:15 -0400 Received: from lo.gmane.org ([80.91.229.12]:57750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKXWj-0006Ao-7y for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 11:10:09 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QKXWh-0001st-Uc for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 17:10:07 +0200 Received: from 193.34.186.16 ([193.34.186.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 May 2011 17:10:07 +0200 Received: from andrewjmoreton by 193.34.186.16 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 May 2011 17:10:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... Date: Thu, 12 May 2011 16:09:52 +0100 Lines: 28 Message-ID: References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> <83hb91glka.fsf@gnu.org> <81E08E06622F4A28A0D7FD619619657E@us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.34.186.16 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:zs4tunOSZOit0vdbzuK/oeZGXQo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On Thu 12 May 2011, Eli Zaretskii wrote: >> From: Andy Moreton >> 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 From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 11:35:00 2011 Received: (at submit) by debbugs.gnu.org; 12 May 2011 15:35:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKXul-0005Qx-M6 for submit@debbugs.gnu.org; Thu, 12 May 2011 11:35:00 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKXuc-0005Qf-Jt for submit@debbugs.gnu.org; Thu, 12 May 2011 11:34:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKXuT-0001m7-6x for submit@debbugs.gnu.org; Thu, 12 May 2011 11:34:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:44973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKXuT-0001m3-5Q for submit@debbugs.gnu.org; Thu, 12 May 2011 11:34:41 -0400 Received: from eggs.gnu.org ([140.186.70.92]:49444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKXuP-0004xk-J2 for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 11:34:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKXuL-0001lN-Sb for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 11:34:37 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:46814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKXuL-0001lH-Mi for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 11:34:33 -0400 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4CFYTkn029587 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 May 2011 15:34:30 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4CFYSqh021308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 May 2011 15:34:28 GMT Received: from abhmt002.oracle.com (abhmt002.oracle.com [141.146.116.11]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4CFYNJ7016444; Thu, 12 May 2011 10:34:23 -0500 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 12 May 2011 08:34:22 -0700 From: "Drew Adams" To: "'Andy Moreton'" , References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com><83hb91glka.fsf@gnu.org><81E08E06622F4A28A0D7FD619619657E@us.oracle.com><4FF6FDF04EA24E6C86D40F9B2D0C32F8@us.oracle.com> Subject: RE: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... Date: Thu, 12 May 2011 08:34:22 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcwQsdN37ToBtclETbWJNCENHEn3ywABHG5Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.4DCBFE07.00DF:SCFMA922111,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > > HOME=C:\ > > That's not a good choice (see below) No explanation below, AFAICT. > >> and that the Cygwin mount table is correct (in my case with > >> /home mounted at C:\home). > > > > Dunno how to check that. In bash, cd $HOME and cd ~ take > > me to /cygdrive/c, if that helps. > > Try running 'mount' $ mount C:\cygwin\bin on /usr/bin type system (binmode) C:\cygwin\lib on /usr/lib type system (binmode) C:\cygwin on / type system (binmode) c: on /cygdrive/c type system (binmode,noumount) i: on /cygdrive/i type system (binmode,noumount) > > FWIW, I am using an old version of Cygwin, having heard of > > various problems that some Emacs users with more recent versions. > > You really should upgrade.... Cygwin1.7 works just fine > with Win32 emacs. So does my current version, AFAICT. It is fine for my needs. And as I said, I've heard problems reported with more recent versions. I don't care to investigate or defend whether such reports exist or are accurate. I'm just telling you why I am not "upgrading". I already said to take that as given. And I said that if the old Cygwin version is the problem here then we can close the bug. > > If there is no problem here with a more recent Cygwin > > build, then that's good news and we can close this bug. > > The problem is your setup - using C:\ as HOME is not a good > idea. Up above you say "see below", but here below you just repeat that it is not a good idea - no reason given. Anyway, my setup is not a _problem_, for Emacs. At least not for my use of it so far. And if HOME=c:\ is "the problem" causing the reported behavior (grep output noise), then I'd suggest that "the problem" is Cygwin not fully supporting c:\ as HOME. It sounds like you are confirming that "the problem" exists even for later Cygwin versions: Users cannot have HOME=c:\ and avoid the noise. Is that correct? Users should be able to have HOME= c:\. That should be a no-brainer. But this bug report is not about fixing Cygwin. If there is nothing Emacs could or should do here, then we can close this bug. > If you want to shorten the reported paths, add a mount > point "/c" mounted at "C:\". Sorry; I don't want to "do" anything. I'm OK with the noisy output - just reporting that things could perhaps be better (for Emacs `grep'). > Reading the fine manual for the details: > - Cygwin 1.7 (current) > http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html > - Cygwin 1.5 (obsolete) http://cygwin.com/1.5/cygwin-ug-net/index.html Right. Send users off to the top of the user guide to tell them how to work around "the problem":... Sorry; I just don't care enough. My use of Cygwin is minimal. > > FWIW - My Cygwin version dates from 2006. I don't see any > > README file or doc and I cannot find how to determine the > > version #. No, I didn't try googling etc. > > A minimal effort would have found that you need to run 'cygcheck'. $ cygcheck -V cygcheck version 1.90 System Checker for Cygwin Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Red Hat, Inc. Compiled on Jan 31 2007 I was headed out the door and in a hurry. Otherwise I would have just googled and found it quick enough. My point was that the doc is not very apparent on a user's Windows box. A "minimal effort" for a Windows application would be to include doc in the `Cygwin' menu (from `Start > All Programs'), or at least include a link from that menu to the online doc. But again, I do not really care. And maybe a more recent version of Cygwin is more Windows-user friendly in this regard; dunno. From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 11:34:40 2011 Received: (at 8653) by debbugs.gnu.org; 12 May 2011 15:34:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKXuS-0005QS-Ao for submit@debbugs.gnu.org; Thu, 12 May 2011 11:34:40 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKXuM-0005QB-UP for 8653@debbugs.gnu.org; Thu, 12 May 2011 11:34:39 -0400 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4CFYQWC029526 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 May 2011 15:34:28 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4CFYPfE025259 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 May 2011 15:34:26 GMT Received: from abhmt002.oracle.com (abhmt002.oracle.com [141.146.116.11]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4CFYKEd023954; Thu, 12 May 2011 10:34:20 -0500 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 12 May 2011 08:34:19 -0700 From: "Drew Adams" To: "'Jason Rumney'" References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com><20E3883FA3924D15B084987F9C9FA71A@us.oracle.com> <874o503s7r.fsf@gnu.org> Subject: RE: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... Date: Thu, 12 May 2011 08:34:18 -0700 Message-ID: <4496314F564F477885189DC8DC5B38CF@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <874o503s7r.fsf@gnu.org> Thread-Index: AcwQsWjGN9i0pMRrRyKmkuJmkTxJowABI7lA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4DCBFE05.0043:SCFMA922111,ss=1,fgs=0 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 8653 Cc: 8653@debbugs.gnu.org, 'Stefan Monnier' X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > > No biggee, but it would be good if the output were > > cleaner/simpler (assuming not too great a cost). > > M-x grep is a low level interface to a shell command. I disagree. But it doesn't matter. > It would make more sense to add such niceties to lgrep ^^^^ s/more// From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 13:12:16 2011 Received: (at submit) by debbugs.gnu.org; 12 May 2011 17:12:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKZQu-0007gq-C3 for submit@debbugs.gnu.org; Thu, 12 May 2011 13:12:16 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKZQs-0007ge-1q for submit@debbugs.gnu.org; Thu, 12 May 2011 13:12:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKZQm-0002AU-AO for submit@debbugs.gnu.org; Thu, 12 May 2011 13:12:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:51297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKZQm-0002AP-6I for submit@debbugs.gnu.org; Thu, 12 May 2011 13:12:08 -0400 Received: from eggs.gnu.org ([140.186.70.92]:58399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKZQl-00073p-63 for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 13:12:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKZQk-0002A0-2a for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 13:12:07 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:38927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKZQj-00029s-Pq for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 13:12:06 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LL300700EAE9T00@a-mtaout20.012.net.il> for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 20:12:03 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.91.65]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LL3006AOEG2MA80@a-mtaout20.012.net.il>; Thu, 12 May 2011 20:12:03 +0300 (IDT) Date: Thu, 12 May 2011 20:10:00 +0300 From: Eli Zaretskii Subject: Re: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... In-reply-to: X-012-Sender: halo1@inter.net.il To: Andy Moreton Message-id: <83ei43hml3.fsf@gnu.org> References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> <83hb91glka.fsf@gnu.org> <81E08E06622F4A28A0D7FD619619657E@us.oracle.com> X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) > From: Andy Moreton > Date: Thu, 12 May 2011 16:09:52 +0100 > > On Thu 12 May 2011, Eli Zaretskii wrote: > > >> From: Andy Moreton > >> 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. I don't see how it would be helpful, because I was unable to understand which part of Drew's description you refer to as "this problem". > 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. I thought that was the _only_ point Drew was making. Apologies if I misunderstood. From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 14:07:24 2011 Received: (at submit) by debbugs.gnu.org; 12 May 2011 18:07:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKaIF-0000Uw-Vb for submit@debbugs.gnu.org; Thu, 12 May 2011 14:07:24 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKaIE-0000Ug-Ha for submit@debbugs.gnu.org; Thu, 12 May 2011 14:07:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKaI6-0002jp-F2 for submit@debbugs.gnu.org; Thu, 12 May 2011 14:07:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_NUMERIC_HELO, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:38539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKaI6-0002jI-36 for submit@debbugs.gnu.org; Thu, 12 May 2011 14:07:14 -0400 Received: from eggs.gnu.org ([140.186.70.92]:48608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKaI4-0001aZ-FC for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 14:07:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKaI3-0002gO-9D for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 14:07:12 -0400 Received: from lo.gmane.org ([80.91.229.12]:57679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKaI3-0002fe-3X for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 14:07:11 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QKaI1-0002db-JI for bug-gnu-emacs@gnu.org; Thu, 12 May 2011 20:07:09 +0200 Received: from 193.34.186.16 ([193.34.186.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 May 2011 20:07:09 +0200 Received: from andrewjmoreton by 193.34.186.16 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 May 2011 20:07:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... Date: Thu, 12 May 2011 19:06:52 +0100 Lines: 15 Message-ID: References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> <83hb91glka.fsf@gnu.org> <81E08E06622F4A28A0D7FD619619657E@us.oracle.com> <4FF6FDF04EA24E6C86D40F9B2D0C32F8@us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.34.186.16 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:dQrXYZ46mK2J/C1zi4n2kxBCnc8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On Thu 12 May 2011, Drew Adams wrote: > It sounds like you are confirming that "the problem" exists even for later > Cygwin versions: Users cannot have HOME=c:\ and avoid the noise. Is that > correct? > > Users should be able to have HOME= c:\. > That should be a no-brainer. Sure - tell cygwin that /home is mounted at C:\ and you're done. > But this bug report is not about fixing Cygwin. If there is nothing Emacs could > or should do here, then we can close this bug. Agreed. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 24 20:35:36 2017 Received: (at submit) by debbugs.gnu.org; 25 Mar 2017 00:35:36 +0000 Received: from localhost ([127.0.0.1]:42942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crZg7-00083d-Rc for submit@debbugs.gnu.org; Fri, 24 Mar 2017 20:35:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crZg6-000835-AT for submit@debbugs.gnu.org; Fri, 24 Mar 2017 20:35:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crZg0-0006Vr-8u for submit@debbugs.gnu.org; Fri, 24 Mar 2017 20:35:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1crZg0-0006Vm-6k for submit@debbugs.gnu.org; Fri, 24 Mar 2017 20:35:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crZfz-0002oF-4a for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2017 20:35:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crZfv-0006Rn-W1 for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2017 20:35:27 -0400 Received: from mail-it0-x241.google.com ([2607:f8b0:4001:c0b::241]:36672) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1crZfv-0006Qy-S0 for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2017 20:35:23 -0400 Received: by mail-it0-x241.google.com with SMTP id 190so1086583itm.3 for ; Fri, 24 Mar 2017 17:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=dSPkOwn8qX4+0FIYsCBfwEGob5IQ5F4623EGKt1yA8I=; b=izmCm0epHfMioMcUz4JEjlYBByHGq+b8aEyxPcZZyUndNWTZXl0OeaWqLNgZPJJVof lshSElTLaTiW8w6bjRWTIae4XTGySQzZ51S8gQ7ucVpjKOn5RkwCeTnkeP65M0eFyynA mcpy7GtjBoVpeR0ZqDZzqS/nfFxIHGP7Xyg9C9umsT9EhNbnI9J/8PVgZRYLIn5QSp08 H5xRwsRxWy9a17ylZCKgX63+Flig4BNlavydkCWCj9KaT0MrUvcrY6hom4svOZZIGRCx DkkSx749yc1pvdIBWx3PbK+DMV0SqlQPdqZpKVMVs77XeBDZl3EumNWQRc5/Jv9l3V0s cyFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=dSPkOwn8qX4+0FIYsCBfwEGob5IQ5F4623EGKt1yA8I=; b=Hu1st8CKb2wA18PHFbQLe26KFXFYiAz9ph97Ae7iXkBE+xohfdoBhqMJ/UvU2TcdAy G1tY1p4mQ9rB99uVzSMFg/yedE2RoRtuNozDfvWA2Mi9/aFip0zRPFwoiwMCls7AMwn2 UlWyR1NAEhUyBf71PjLJCsKis6TSecGGP3toF4HOQbASJP9A9PyF9ddoLXifCAypE7Eb cNiPFqy5QbV1KPxQisdYg9px5vXXjYgSBJunBSrl0pzlyKK53GdcWkB6b6JYQweS5UxK Tvu9/kR6a2/+mDs4aF7CzU0L1ZqM6XXFC+pagSw9M7iFbyozDvBO7A6gWyYw05kNmJXw cjcQ== X-Gm-Message-State: AFeK/H3AzaabMXtlu+jGJhORDnzh6HPlyqqIsvbm29dbajuRmH21w70WBFxm/aTXcjRr8Q== X-Received: by 10.36.181.6 with SMTP id v6mr389660ite.25.1490402123223; Fri, 24 Mar 2017 17:35:23 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id i197sm2004310ioi.7.2017.03.24.17.35.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Mar 2017 17:35:22 -0700 (PDT) From: npostavs@users.sourceforge.net To: Andy Moreton Subject: Re: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> <83hb91glka.fsf@gnu.org> <81E08E06622F4A28A0D7FD619619657E@us.oracle.com> <4FF6FDF04EA24E6C86D40F9B2D0C32F8@us.oracle.com> Date: Fri, 24 Mar 2017 20:36:46 -0400 In-Reply-To: (Andy Moreton's message of "Thu, 12 May 2011 19:06:52 +0100") Message-ID: <87h92i2nvl.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit Cc: 8653@debbugs.gnu.org, bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) tags 8653 notabug close 8653 quit Andy Moreton writes: > On Thu 12 May 2011, Drew Adams wrote: > >> It sounds like you are confirming that "the problem" exists even for later >> Cygwin versions: Users cannot have HOME=c:\ and avoid the noise. Is that >> correct? >> >> Users should be able to have HOME= c:\. >> That should be a no-brainer. > > Sure - tell cygwin that /home is mounted at C:\ and you're done. > >> But this bug report is not about fixing Cygwin. If there is nothing Emacs could >> or should do here, then we can close this bug. > > Agreed. Sounds like the best fix is for the user to configure cygwin to translate '/cygdrive/c' into '~' (if they want HOME=C:\), therefore I'm closing this. From unknown Fri Jun 20 05:37:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 22 Apr 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator