From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#20242: 24.5; compilation-mode and tramp interaction bug Date: Mon, 06 Apr 2015 11:25:09 +0200 Message-ID: <87r3rxsj62.fsf@gmx.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1428312381 22285 80.91.229.3 (6 Apr 2015 09:26:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Apr 2015 09:26:21 +0000 (UTC) Cc: 20242@debbugs.gnu.org To: David Hull Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 06 11:26:09 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yf3IH-0004Nl-71 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Apr 2015 11:26:09 +0200 Original-Received: from localhost ([::1]:39261 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yf3IG-0002mw-B7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Apr 2015 05:26:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yf3ID-0002mg-5e for bug-gnu-emacs@gnu.org; Mon, 06 Apr 2015 05:26:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yf3I9-0006od-UD for bug-gnu-emacs@gnu.org; Mon, 06 Apr 2015 05:26:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yf3I9-0006oX-RN for bug-gnu-emacs@gnu.org; Mon, 06 Apr 2015 05:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yf3I9-00079S-KE for bug-gnu-emacs@gnu.org; Mon, 06 Apr 2015 05:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Apr 2015 09:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20242 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20242-submit@debbugs.gnu.org id=B20242.142831231927430 (code B ref 20242); Mon, 06 Apr 2015 09:26:01 +0000 Original-Received: (at 20242) by debbugs.gnu.org; 6 Apr 2015 09:25:19 +0000 Original-Received: from localhost ([127.0.0.1]:45860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yf3HS-00078M-Vp for submit@debbugs.gnu.org; Mon, 06 Apr 2015 05:25:19 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:55421) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yf3HQ-000786-Fy for 20242@debbugs.gnu.org; Mon, 06 Apr 2015 05:25:18 -0400 Original-Received: from detlef.gmx.de ([87.146.48.150]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Lb4vZ-1Z86d51HIH-00kc0Q; Mon, 06 Apr 2015 11:25:10 +0200 In-Reply-To: (David Hull's message of "Wed, 01 Apr 2015 10:38:31 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:Ig2j9Hz3n8l9DGdsHW21Km87hToMs/hpQn5c+Ph3GyOHl0k0wT+ h8HaP9PvSWX0qYhsx6xTFFzeqUYbQad8HHcR6yjWBaV91OQDKnqkb3hp8GfHA/CDZyreCLf AQB3EAt/JUrf1bdKpnkGNjntQISkscfAvHoaE2q11V86rJgEiMjE8Dx/iA9SO8OlEWMqQ+X 5CvsX4mtAJ5j/PmmeHRDw== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:101228 Archived-At: David Hull 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 --8<---------------cut here---------------start------------->8--- -*- 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 --8<---------------cut here---------------end--------------->8--- 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"? > Thanks. Best regards, Michael.