From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#20242: 24.5; compilation-mode and tramp interaction bug Date: Wed, 17 Aug 2016 11:41:32 +0200 Message-ID: <87oa4r20mr.fsf@gmx.de> References: <87r3rxsj62.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1471426939 5163 195.159.176.226 (17 Aug 2016 09:42:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2016 09:42:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: 20242-done@debbugs.gnu.org To: David Hull Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 17 11:42:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZxMV-00019d-1x for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Aug 2016 11:42:15 +0200 Original-Received: from localhost ([::1]:46290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZxMS-0006FP-5J for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Aug 2016 05:42:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZxML-0006F6-Ii for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2016 05:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZxMI-0004Pr-SP for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2016 05:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZxMI-0004Ph-PX for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2016 05:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bZxMI-0008O6-Lm for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2016 05:42:02 -0400 Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Aug 2016 09:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 20242 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 20242@debbugs.gnu.org, michael.albinus@gmx.de, david.hull@openx.com Original-Received: via spool by 20242-done@debbugs.gnu.org id=D20242.147142690432211 (code D ref 20242); Wed, 17 Aug 2016 09:42:02 +0000 Original-Received: (at 20242-done) by debbugs.gnu.org; 17 Aug 2016 09:41:44 +0000 Original-Received: from localhost ([127.0.0.1]:59781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZxM0-0008NT-H5 for submit@debbugs.gnu.org; Wed, 17 Aug 2016 05:41:44 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:55584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZxLy-0008NG-P7 for 20242-done@debbugs.gnu.org; Wed, 17 Aug 2016 05:41:43 -0400 Original-Received: from detlef.gmx.de ([87.146.48.158]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M9JYE-1bSmsy2XNe-00CiLS; Wed, 17 Aug 2016 11:41:34 +0200 In-Reply-To: <87r3rxsj62.fsf@gmx.de> (Michael Albinus's message of "Mon, 06 Apr 2015 11:25:09 +0200") X-Provags-ID: V03:K0:3SlXBQNhzD5nfRgIgIPa3mC02uxHOsLA5Ac7RP4uIt2H0Swm6jl MqpV0kPvGBcDMp4jdGAZ92gDvqP2qtoLakPY0Q9GGGv4FUXI0KRGkSJcZQYFvJoMVfgsLgA xg8TGg80md7MOKbf2vGAc96GMKQS15PGe/+yjbIsSKD0nh+C1Gz4l3PsJ81BqdRO1dgjUOp V8QFrlqySSkTYiTJKDC5Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:uQ3h6Jf13EU=:Ue5yVkVTEkOaE+S9VNRF39 0mJzmW7YMgRXGoZdmHrjchk9wfP6Xx3xld+a2U/SCxSD0nNxqns0XrWWSIAZcI/g5PG3H1Vel TlRtwCsXWhjR+v/XxLJEmvEP+HHcoM+raKkD4TMY7e+mmZ5Q+9gU7+F3A0UxMjeB+g3xt3B6F bmyaJixooH4sGe3COLPJ5A5gq9FjT0XmhUAO8qwPLwD+w0aSIAHvgjALkKVFP/ARlW2X2HDIM UhR6zevkHxGoUXeA8bhla7iycbd1YQDmiOF8HKqPlCfF6ukILI6OZtPk4+l5+0WNjwM4IGtMt pCMaiz0USiIExR630JT96N2lYS8Gclcrjx9F7lUMek7dB235qPghrDP9yTQpwMdx6wEmvo5ar DkVF7fdz+JfBjQMHwl81fxYPmyvn99/LmOCQHsdJAIpgaFpHdqF8r5N2OhEl8roq3579iAX62 q2L3jD7A6btCzPz6lkAjhIUED/6a3ow9pYw9djR0ox6T4UHSA6Zmtvf7KvZGYkpQqppRejbFT bKRFxz06/bHqmfufrsnBwwwiQqvKYMYeUDB1ydnE5EBDL02hB+eP/AHd9pnvEeKgFWj9OeGfB la8sCclyvdwYV5myDmy7mF+g/cw4iSOU3DW76ko9ZiiuxF0Rqrq7lxh2ZkhDd40a0k4U/KiYc micoVsBaGXoaV0drT7L2JvHZqBhqtdmYSAVq5uNjEm4FP/Lj4BwJmlwUd7F+cwzaSTiGGfl9H A9pZ90FyHxZhFx56TlolezBfNIl4ohDmsiSoti09Xeb4aTGz16qYUNobfvAGtY9cd462C7tN X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:122306 Archived-At: Michael Albinus writes: Hi David, >> I believe that there is a bug in the interaction between >> compilation-mode and tramp. This bug exists in 24.5rc1, but also exists >> in the previous emacs version, 24.4.1. This is the situation: >> >> I am running emacs on a Mac. On the Mac, "/var" is a symlink to >> "private/var". >> >> I am using tramp to visit a project on a CentOS 6 VM. The project on >> the VM is in "/var/home/david.hull/src/ds-advertiser-server/src". >> >> I run "M-x compile", and run "make -k" as the compilation command. >> Compile creates a "*compilation*" buffer with the error messages. Here >> are the partial contents, prefixed with ">": >> >>> -*- mode: compilation; default-directory: >>> "/scp:cos6:/var/home/david.hull/src/ds-advertiser-server/src/" -*- >>> Compilation started at Wed Apr 1 10:18:47 >>> >>> ds_adv_ox3_ad_v5.erl:44: syntax error before: '}' >> >> When I press Enter on this error line to run compile-goto-error, I get >> the following message in the minibuffer: >> >> Find this error in (default ds_adv_ox3_ad_v5.erl): >> /scp:cos6:/private/var/home/david.hull/src/ds-advertiser-server/src >> >> Note that the file path begins with "/private/var" instead of "/var". I >> believe that either compilation-mode or tramp is attempting to expand >> the symlinks, but is incorrectly expanding "/var" to "/private/var", >> which would be correct on the Mac but is incorrect on the CentOS VM. > > I cannot reproduce the error, neither with Emacs 24.5 RC3, nor with > Emacs 25.0.50. I have applied the following steps: > > - On the local machine: > > mkdir /tmp/foo > ln -s /tmp/foo /foo > > - On the remote machine: > > mkdir /foo > echo "(require 'foo)" >/foo/foo.el > > - Then I have opened /scp:machine:/foo/foo.el. I have applied "M-x compile RET > emacs --no-site-file -batch -l bytecomp -f batch-byte-compile foo.el". > > The result was the *compilation* buffer > > -*- mode: compilation; default-directory: "/scp:machine:/foo/" -*- > Compilation started at Mon Apr 6 11:18:14 > > emacs --no-site-file -batch -l bytecomp -f batch-byte-compile foo.el > > In toplevel form: > foo.el:1:1:Error: Cannot open load file: foo > > Compilation exited abnormally with code 1 at Mon Apr 6 11:18:15 > > When I apply "M-x compile-goto-error" on the error line, file > /scp:machine:/foo/foo.el is opened as expected. > > Maybe you have some nasty local settings? Could you reproduce the > problem when starting "emacs -Q"? There hasn't been a reaction for more than a year. I'm closing the bug; feel free to reopen if there are more evidences. Best regards, Michael.