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#9311: 23.3.50; Can't load some byte-compiled files on Windows Date: Tue, 30 Aug 2011 17:26:38 +0200 Message-ID: <87r542or81.fsf@gmx.de> References: <20110817002457.0B68A1E0043@msa101.auone-net.jp> <83zkj8s9hh.fsf@gnu.org> <87zkirnhbv.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314718029 31456 80.91.229.12 (30 Aug 2011 15:27:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2011 15:27:09 +0000 (UTC) Cc: Kazuhiro Ito , 9311@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 30 17:27:04 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 1QyQDM-0007EA-QC for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Aug 2011 17:27:01 +0200 Original-Received: from localhost ([::1]:59315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyQDM-0005ot-AF for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Aug 2011 11:27:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyQDJ-0005oh-6e for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2011 11:26:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyQDH-0005L0-VA for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2011 11:26:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyQDH-0005Ko-TR for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2011 11:26:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QyQGJ-000683-B2; Tue, 30 Aug 2011 11:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Aug 2011 15:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9311-submit@debbugs.gnu.org id=B9311.131471819523524 (code B ref 9311); Tue, 30 Aug 2011 15:30:03 +0000 Original-Received: (at 9311) by debbugs.gnu.org; 30 Aug 2011 15:29:55 +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 1QyQGA-00067M-LU for submit@debbugs.gnu.org; Tue, 30 Aug 2011 11:29:55 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QyQG8-00067D-8Y for 9311@debbugs.gnu.org; Tue, 30 Aug 2011 11:29:53 -0400 Original-Received: (qmail invoked by alias); 30 Aug 2011 15:26:41 -0000 Original-Received: from p57BB98DA.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.218] by mail.gmx.net (mp058) with SMTP; 30 Aug 2011 17:26:41 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+S7MYNhPuScC7xbVg56FfLAOIIyHPRpC58ZauxPu 0WGvcrI+wYwNaV In-Reply-To: (Stefan Monnier's message of "Tue, 30 Aug 2011 10:33:55 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 30 Aug 2011 11:30:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:50440 Archived-At: Stefan Monnier writes: >> In the discussion of bug#5303 there was the proposal to remove the >> volume letter from `tramp-completion-file-name-regexp'. This was >> postponed, because we were in pretest phase. >> But we haven't done it after that release. >> Shall we try it now? Somehow, we are still before a pretest ... > > Coulf you post a sample patch, together with a discussion of the impact? Sometimes (I cannot reproduce it persistently), there are situations that `expand-file-name' prefixes a remote file name by a volume letter. Happens on win32 only, of course, and confuses Tramp. In order to let Tramp continue its work, we have accepted remote file names with a leading volume letter, which are removed by Tramp then. This worked almost OK, except such cases as discussed in the current (and earlier) bug reports. Eli did suggest to remove this hack from Tramp, and to see during the test where the unexpected volume letter prefix happens. Problems shall be fixed there. The following patch does it, in its final version there could be some additional minor polishing. --8<---------------cut here---------------start------------->8--- *** /home/albinus/src/tramp/lisp/tramp.el.~2.843~ 2011-08-30 17:10:16.058151065 +0200 --- /home/albinus/src/tramp/lisp/tramp.el 2011-08-30 17:07:38.841961797 +0200 *************** *** 861,873 **** Also see `tramp-file-name-structure'.") ;;;###autoload ! (defconst tramp-root-regexp ! (if (memq system-type '(cygwin windows-nt)) ! "\\`\\([a-zA-Z]:\\)?/" ! "\\`/") ! "Beginning of an incomplete Tramp file name. ! Usually, it is just \"\\\\`/\". On W32 systems, there might be a ! volume letter, which will be removed by `tramp-drop-volume-letter'.") ;;;###autoload (defconst tramp-completion-file-name-regexp-unified --- 861,868 ---- Also see `tramp-file-name-structure'.") ;;;###autoload ! (defconst tramp-root-regexp "\\`/" ! "Beginning of an incomplete Tramp file name.") ;;;###autoload (defconst tramp-completion-file-name-regexp-unified *************** *** 1503,1509 **** but the remote system is Unix, this introduces a superfluous drive letter into the file name. This function removes it." (save-match-data ! (if (string-match tramp-root-regexp name) (replace-match "/" nil t name) name))) --- 1498,1504 ---- but the remote system is Unix, this introduces a superfluous drive letter into the file name. This function removes it." (save-match-data ! (if (string-match "\\`[a-zA-Z]:/" name) (replace-match "/" nil t name) name))) --8<---------------cut here---------------end--------------->8--- > Stefan Best regards, Michael.