From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 04:02:21 2010 Received: (at submit) by debbugs.gnu.org; 22 Jan 2010 09:02:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYFPJ-0003Hp-DV for submit@debbugs.gnu.org; Fri, 22 Jan 2010 04:02:21 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYFP3-0003HU-PJ for submit@debbugs.gnu.org; Fri, 22 Jan 2010 04:02:20 -0500 Received: from mx10.gnu.org ([199.232.76.166]:40861) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYFP0-00052R-U5 for submit@debbugs.gnu.org; Fri, 22 Jan 2010 04:02:03 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NYFOy-0000xW-KD for submit@debbugs.gnu.org; Fri, 22 Jan 2010 04:02:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:56470) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NYFOy-0000xQ-Dd for submit@debbugs.gnu.org; Fri, 22 Jan 2010 04:02:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYFOy-0002mJ-8h for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 04:02:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYFOt-0002iO-DJ for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 04:01:59 -0500 Received: from [199.232.76.173] (port=52317 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYFOt-0002iB-7h for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 04:01:55 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:53490) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NYFOs-0000vs-H7 for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 04:01:54 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KWN000004YZJA00@a-mtaout20.012.net.il> for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 11:01:53 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.228.141.118]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KWN00LTW534MTA0@a-mtaout20.012.net.il> for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 11:01:53 +0200 (IST) Date: Fri, 22 Jan 2010 11:01:59 +0200 From: Eli Zaretskii Subject: 23.1.91; load-file fails for C:/the-file.el.gz X-012-Sender: halo1@inter.net.il To: bug-gnu-emacs@gnu.org Message-id: <83iqau7bso.fsf@gnu.org> X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.7 (---) 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: -4.0 (----) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': emacs -Q M-x load-file RET C:/the-file.el.gz RET This signals an error: Wrong type argument: consp, nil. The traceback is as follows: Debugger entered--Lisp error: (wrong-type-argument consp nil) jka-compr-load("c:/the-file.el.gz" nil nil t) apply(jka-compr-load ("c:/the-file.el.gz" nil nil t)) jka-compr-handler(load "c:/the-file.el.gz" nil nil t) load("c:/the-file.el.gz" nil nil t) load-file("c:/the-file.el.gz") call-interactively(load-file t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) This problem does not happen for files not in the root directory of a Windows drive, e.g., C:/Temp/the-file.el.gz If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file d:/gnu/bzr/emacs/trunk/etc/DEBUG. In GNU Emacs 23.1.91.1 (i386-mingw-nt5.1.2600) of 2010-01-22 on HOME-C4E4A596F7 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1255 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x l o a C-g M-x s e t - v a r d e b o e t M-x l o a d - f i C : / t h e - f i l e . e l . g z C-x o M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Quit Loading tramp...done uncompressing the-file.el.gz...done Loading c:/the-file.el.gz...done. Entering debugger... Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug help-mode view debug jka-compr ange-ftp tramp-imap epa derived epg epg-config imap-hash imap message smtpmail sendmail ecomplete rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils assoc tramp-gw tramp-fish tramp-cache tramp-ftp tramp-cmds tramp regexp-opt auth-source gnus-util netrc time-date advice advice-preload shell comint ring password-cache format-spec tramp-compat trampver cus-edit easymenu wid-edit cus-start cus-load help-fns tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 05:33:21 2010 Received: (at 5447-done) by debbugs.gnu.org; 22 Jan 2010 10:33:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYGpM-0003xr-S2 for submit@debbugs.gnu.org; Fri, 22 Jan 2010 05:33:21 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYGpK-0003xm-Ax for 5447-done@debbugs.gnu.org; Fri, 22 Jan 2010 05:33:19 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0KWN0070092FBV00@a-mtaout22.012.net.il> for 5447-done@debbugs.gnu.org; Fri, 22 Jan 2010 12:32:46 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.228.141.118]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KWN004AJ9ALEYD0@a-mtaout22.012.net.il> for 5447-done@debbugs.gnu.org; Fri, 22 Jan 2010 12:32:46 +0200 (IST) Date: Fri, 22 Jan 2010 12:32:52 +0200 From: Eli Zaretskii Subject: Re: bug#5447: 23.1.91; load-file fails for C:/the-file.el.gz In-reply-to: <83iqau7bso.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: 5447-done@debbugs.gnu.org Message-id: <83hbqe77l7.fsf@gnu.org> References: <83iqau7bso.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 5447-done 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: -1.9 (-) > Date: Fri, 22 Jan 2010 11:01:59 +0200 > From: Eli Zaretskii > Cc: > > emacs -Q > M-x load-file RET C:/the-file.el.gz RET > > This signals an error: Wrong type argument: consp, nil. The traceback > is as follows: > > Debugger entered--Lisp error: (wrong-type-argument consp nil) > jka-compr-load("c:/the-file.el.gz" nil nil t) > apply(jka-compr-load ("c:/the-file.el.gz" nil nil t)) > jka-compr-handler(load "c:/the-file.el.gz" nil nil t) > load("c:/the-file.el.gz" nil nil t) > load-file("c:/the-file.el.gz") > call-interactively(load-file t nil) > execute-extended-command(nil) > call-interactively(execute-extended-command nil nil) Fixed with the patch below. The interesting thing is that jka-compr-load is not even called if the file is not in the root directory of a drive. I will try to look into that now. Should we perhaps run $TEMP etc. through file-truename when we compute the value of temporary-file-directory? 2010-01-22 Eli Zaretskii * jka-compr.el (jka-compr-load): If load-file is not in load-history, try its file-truename version. (bug#5447) === modified file 'lisp/jka-compr.el' --- lisp/jka-compr.el 2010-01-13 08:35:10 +0000 +++ lisp/jka-compr.el 2010-01-22 10:19:39 +0000 @@ -590,7 +590,14 @@ There should be no more than seven chara (or nomessage (message "Loading %s...done." file)) ;; Fix up the load history to point at the right library. - (let ((l (assoc load-file load-history))) + (let ((l (or (assoc load-file load-history) + ;; On MS-Windows, if load-file is in + ;; temporary-file-directory, it will look like + ;; "c:/DOCUME~1/USER/LOCALS~1/foo", whereas + ;; readevalloop will record its truename in + ;; load-history. Therefore try truename if the + ;; original name is not in load-history. + (assoc (file-truename load-file) load-history)))) ;; Remove .gz and .elc?. (while (file-name-extension file) (setq file (file-name-sans-extension file))) From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 05:56:38 2010 Received: (at 5447) by debbugs.gnu.org; 22 Jan 2010 10:56:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYHBu-00049h-5S for submit@debbugs.gnu.org; Fri, 22 Jan 2010 05:56:38 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYHBs-00049a-Lp for 5447@debbugs.gnu.org; Fri, 22 Jan 2010 05:56:37 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KWN00400AB9LK00@a-mtaout20.012.net.il> for 5447@debbugs.gnu.org; Fri, 22 Jan 2010 12:55:54 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.228.141.118]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KWN001Y6AD597E0@a-mtaout20.012.net.il> for 5447@debbugs.gnu.org; Fri, 22 Jan 2010 12:55:54 +0200 (IST) Date: Fri, 22 Jan 2010 12:56:00 +0200 From: Eli Zaretskii Subject: Re: bug#5447 closed by Eli Zaretskii (Re: bug#5447: 23.1.91; load-file fails for C:/the-file.el.gz) In-reply-to: X-012-Sender: halo1@inter.net.il To: 5447@debbugs.gnu.org Message-id: <83eili76in.fsf@gnu.org> References: <83hbqe77l7.fsf@gnu.org> <83iqau7bso.fsf@gnu.org> X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 5447 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: bug-gnu-emacs@gnu.org (Emacs bug Tracking System) > Date: Fri, 22 Jan 2010 10:34:01 +0000 > > The interesting thing is that jka-compr-load is not even called if > the file is not in the root directory of a drive. I will try to > look into that now. This is actually trivial: a file that is not in C:/ is not considered a remote file by Tramp handlers. Case closed. Like Lennart, I think that considering X:/ files on Windows to be remote is a bad idea. If it didn't have any serious consequences, I'd just shrug. But the recent bug reports indicate that it does have very serious consequences, and is quite an annoyance. Can we please get rid of that misfeature? From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 10:41:33 2010 Received: (at 5447) by debbugs.gnu.org; 22 Jan 2010 15:41:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYLdc-0007Iw-P2 for submit@debbugs.gnu.org; Fri, 22 Jan 2010 10:41:33 -0500 Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYLdb-0007Ip-4j for 5447@debbugs.gnu.org; Fri, 22 Jan 2010 10:41:31 -0500 Received: from ceviche.home (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o0MFfND6008601; Fri, 22 Jan 2010 10:41:24 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 8E8607002E; Fri, 22 Jan 2010 10:41:21 -0500 (EST) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#5447: closed by Eli Zaretskii (Re: bug#5447: 23.1.91; load-file fails for C:/the-file.el.gz) Message-ID: References: <83hbqe77l7.fsf@gnu.org> <83iqau7bso.fsf@gnu.org> <83eili76in.fsf@gnu.org> Date: Fri, 22 Jan 2010 10:41:21 -0500 In-Reply-To: <83eili76in.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 22 Jan 2010 12:56:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Level: * X-NAI-Spam-Score: 1 X-NAI-Spam-Rules: 2 Rules triggered TO_ALIAS_IN_SUBJ=1, RV3453=0 X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: 5447 Cc: 5447@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: -1.7 (-) >> The interesting thing is that jka-compr-load is not even called if >> the file is not in the root directory of a drive. I will try to >> look into that now. > This is actually trivial: a file that is not in C:/ is not considered > a remote file by Tramp handlers. Case closed. > Like Lennart, I think that considering X:/ files on Windows to be > remote is a bad idea. If it didn't have any serious consequences, I'd > just shrug. But the recent bug reports indicate that it does have > very serious consequences, and is quite an annoyance. > Can we please get rid of that misfeature? I generally agree, but I'd like to see a concrete patch for it first. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 13:04:21 2010 Received: (at 5447) by debbugs.gnu.org; 22 Jan 2010 18:04:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYNrp-0001g2-Aa for submit@debbugs.gnu.org; Fri, 22 Jan 2010 13:04:21 -0500 Received: from fg-out-1718.google.com ([72.14.220.153]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYNrc-0001fl-4o for 5447@debbugs.gnu.org; Fri, 22 Jan 2010 13:04:16 -0500 Received: by fg-out-1718.google.com with SMTP id 22so586739fge.15 for <5447@debbugs.gnu.org>; Fri, 22 Jan 2010 10:04:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=sHsqRPGgRNhpUO5qaYgt8TG1tuppNuMwpZ6+dfn1Q5A=; b=ExjxjmFZbJHDFteQ0bZyBdLDL1Rt4uh1x4jp5ohm1G4AY1Q7h6n+kzT+NXYBmdGWsu laNmQFUBVxJCT7ydJ/NX+Isbj8sQ+cVlPSEFKd0SfV30MWplkp8uVL93XqrmcBhD8D8A S/fAAIQMyFxoYGBLphqJPQZxaYCUsEmddiEDk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=D8Dh7tiERYvQirYRCNUr0c7pY846pglyPe6OFJvrYdEMjSo8JKC7PdGiQTEjpCnlUU bvASQ5bHAX0bzGbEscEcghr+WthdkFmh2mz+fSah19nfcgZhY+j9uMkU8v3z97BkRVrO jajH4gK7DEUBuiwHLzW/RT0ct6z9DBoeemggs= MIME-Version: 1.0 Received: by 10.239.180.200 with SMTP id j8mr383905hbg.108.1264183442356; Fri, 22 Jan 2010 10:04:02 -0800 (PST) In-Reply-To: References: <83hbqe77l7.fsf@gnu.org> <83iqau7bso.fsf@gnu.org> <83eili76in.fsf@gnu.org> From: Lennart Borgman Date: Fri, 22 Jan 2010 19:03:42 +0100 Message-ID: Subject: Re: bug#5447: closed by Eli Zaretskii (Re: bug#5447: 23.1.91; load-file fails for C:/the-file.el.gz) To: Stefan Monnier , Michael Albinus Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 5447 Cc: Eli Zaretskii , 5447@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: -2.9 (--) On Fri, Jan 22, 2010 at 4:41 PM, Stefan Monnier wrote: >>> The interesting thing is that jka-compr-load is not even called if >>> the file is not in the root directory of a drive. =C2=A0I will try to >>> look into that now. >> This is actually trivial: a file that is not in C:/ is not considered >> a remote file by Tramp handlers. =C2=A0Case closed. >> Like Lennart, I think that considering X:/ files on Windows to be >> remote is a bad idea. =C2=A0If it didn't have any serious consequences, = I'd >> just shrug. =C2=A0But the recent bug reports indicate that it does have >> very serious consequences, and is quite an annoyance. >> Can we please get rid of that misfeature? > > I generally agree, but I'd like to see a concrete patch for it first. Maybe the patch is not the problem. In the discussion around bug 5448 Michael wrote as an answer to my question: On Wed, Jan 20, 2010 at 10:00 AM, Michael Albinus wrote: > Lennart Borgman writes: > >>>> However I wonder why those files at all are interesting for tramp. I >>>> know little about tramp, but does not remote file names always start >>>> with something like "/ssh:", "/ftp:", "/telnet:" etc? >>>> >>>> If so why look for file names starting with "c:/"? >>> >>> Some packages ( I don't remember which ones) do add the volume letter t= o >>> file names, which haven't one. Tramp silently removes the volume letter >>> then, and continues. >> >> But is not that a bug in those packages then? Does not trying to fix >> it in Tramp introduce this new bug? > > In theory, you are right. But Tramp supports also GNU Emacs 21, 22, and > XEmacs. This makes it impossible to fix all involved packages. > > Best regards, Michael. I do not understand exactly what Michael means with "some packages ... do add the volume letter". However he says there is some problem there. I still think this is a good time to fix it. Looking at it again I get more confused. Does not the same thing happen on un*x like file systems? I mean does not all that stuff Eli mentioned get loaded if you try to complete a file name in the root on those systems too? (But perhaps you do not bump into the problem there that often?) At least it looks to me from the pattern that this must happen there too: ("\\`\\([a-zA-Z]:\\)?/[^/]*\\'" . tramp-completion-file-name-handler) Perhaps the right thing to do is to only match "/ssh:", "/ftp:", "/telnet:" etc and only bring in Tramp if those things matches? From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 13:05:43 2010 Received: (at 5447) by debbugs.gnu.org; 22 Jan 2010 18:05: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 1NYNt9-0001hH-BX for submit@debbugs.gnu.org; Fri, 22 Jan 2010 13:05:43 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYNt7-0001hC-Sg for 5447@debbugs.gnu.org; Fri, 22 Jan 2010 13:05:42 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0KWN00000TY5KZ00@a-mtaout22.012.net.il> for 5447@debbugs.gnu.org; Fri, 22 Jan 2010 20:05:29 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.228.141.118]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KWN00NWMU944350@a-mtaout22.012.net.il>; Fri, 22 Jan 2010 20:05:29 +0200 (IST) Date: Fri, 22 Jan 2010 20:05:35 +0200 From: Eli Zaretskii Subject: Re: bug#5447: closed by Eli Zaretskii (Re: bug#5447: 23.1.91; load-file fails for C:/the-file.el.gz) In-reply-to: X-012-Sender: halo1@inter.net.il To: Stefan Monnier , Michael Albinus Message-id: <838wbq6mmo.fsf@gnu.org> References: <83hbqe77l7.fsf@gnu.org> <83iqau7bso.fsf@gnu.org> <83eili76in.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 5447 Cc: 5447@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: -1.9 (-) > From: Stefan Monnier > Cc: 5447@debbugs.gnu.org > Date: Fri, 22 Jan 2010 10:41:21 -0500 > > >> The interesting thing is that jka-compr-load is not even called if > >> the file is not in the root directory of a drive. I will try to > >> look into that now. > > This is actually trivial: a file that is not in C:/ is not considered > > a remote file by Tramp handlers. Case closed. > > Like Lennart, I think that considering X:/ files on Windows to be > > remote is a bad idea. If it didn't have any serious consequences, I'd > > just shrug. But the recent bug reports indicate that it does have > > very serious consequences, and is quite an annoyance. > > Can we please get rid of that misfeature? > > I generally agree, but I'd like to see a concrete patch for it first. I meant a Windows-specific change; is that what you meant? AFAICS, typing "/" on Unix does not automatically load Tramp. Michael, how hard would it be to special-case "\`[a-z]:/" on Windows so that matching files are never considered to be ``remote files''? From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 16:30:25 2010 Received: (at 5447) by debbugs.gnu.org; 22 Jan 2010 21:30: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 1NYR5E-0003hX-P6 for submit@debbugs.gnu.org; Fri, 22 Jan 2010 16:30:25 -0500 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NYR5D-0003hQ-MZ for 5447@debbugs.gnu.org; Fri, 22 Jan 2010 16:30:24 -0500 Received: (qmail invoked by alias); 22 Jan 2010 21:30:18 -0000 Received: from p4FC00C8F.dip0.t-ipconnect.de (EHLO detlef.local) [79.192.12.143] by mail.gmx.net (mp014) with SMTP; 22 Jan 2010 22:30:18 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19Fhgt/UZ1FQkRJ8/PVDKFEq1BJ0W8YTm3jkGlpID nSvwkW5AEd1UJI From: Michael Albinus To: Lennart Borgman Subject: Re: bug#5447: closed by Eli Zaretskii (Re: bug#5447: 23.1.91; load-file fails for C:/the-file.el.gz) References: <83hbqe77l7.fsf@gnu.org> <83iqau7bso.fsf@gnu.org> <83eili76in.fsf@gnu.org> Date: Fri, 22 Jan 2010 22:30:16 +0100 In-Reply-To: (Lennart Borgman's message of "Fri, 22 Jan 2010 19:03:42 +0100") Message-ID: <87tyudg74n.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71999999999999997 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5447 Cc: Eli Zaretskii , Stefan Monnier , 5447@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: -2.6 (--) Lennart Borgman writes: > At least it looks to me from the pattern that this must happen there too: > > ("\\`\\([a-zA-Z]:\\)?/[^/]*\\'" . tramp-completion-file-name-handler) > > Perhaps the right thing to do is to only match "/ssh:", "/ftp:", > "/telnet:" etc and only bring in Tramp if those things matches? We are speaking about the tramp-***completion***-file-name-handler. This is responsible to expand "/s " to "/ssh:" (and alike). Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 16:37:34 2010 Received: (at 5447) by debbugs.gnu.org; 22 Jan 2010 21:37:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYRCA-0003n4-5a for submit@debbugs.gnu.org; Fri, 22 Jan 2010 16:37:34 -0500 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NYRC7-0003mw-LP for 5447@debbugs.gnu.org; Fri, 22 Jan 2010 16:37:32 -0500 Received: (qmail invoked by alias); 22 Jan 2010 21:37:26 -0000 Received: from p4FC00C8F.dip0.t-ipconnect.de (EHLO detlef.local) [79.192.12.143] by mail.gmx.net (mp056) with SMTP; 22 Jan 2010 22:37:26 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1997Lp37Rt9FBBSh3kGa/0Zf36xcQ+zYV3lpQwJqA nZYoxz/BHjOpqY From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#5447: closed by Eli Zaretskii (Re: bug#5447: 23.1.91; load-file fails for C:/the-file.el.gz) References: <83hbqe77l7.fsf@gnu.org> <83iqau7bso.fsf@gnu.org> <83eili76in.fsf@gnu.org> <838wbq6mmo.fsf@gnu.org> Date: Fri, 22 Jan 2010 22:37:24 +0100 In-Reply-To: <838wbq6mmo.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 22 Jan 2010 20:05:35 +0200") Message-ID: <87pr51g6sr.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.68000000000000005 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5447 Cc: Stefan Monnier , 5447@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: -2.6 (--) Eli Zaretskii writes: > Michael, how hard would it be to special-case "\`[a-z]:/" on Windows so > that matching files are never considered to be ``remote files''? IIRC, there was the case that "/method:host:" was expanded to "C:/method:host:" by I-dont-know-which-package. Exactly because of this problem we have the `tramp-drop-volume-letter' function. I acknowledge, that it is an error which shall be fixed where it happens, and not in Tramp. But not easy to hunt, especially for a guy like me who doesn't work under w32. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 23 03:13:51 2010 Received: (at 5447) by debbugs.gnu.org; 23 Jan 2010 08:13:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYb7u-00030g-Pj for submit@debbugs.gnu.org; Sat, 23 Jan 2010 03:13:50 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYb7s-00030b-Tx for 5447@debbugs.gnu.org; Sat, 23 Jan 2010 03:13:49 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KWO00000XAP3I00@a-mtaout20.012.net.il> for 5447@debbugs.gnu.org; Sat, 23 Jan 2010 10:12:54 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.228.141.118]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KWO00M1AXHHRT40@a-mtaout20.012.net.il>; Sat, 23 Jan 2010 10:12:54 +0200 (IST) Date: Sat, 23 Jan 2010 10:13:02 +0200 From: Eli Zaretskii Subject: Re: bug#5447: closed by Eli Zaretskii (Re: bug#5447: 23.1.91; load-file fails for C:/the-file.el.gz) In-reply-to: <87pr51g6sr.fsf@gmx.de> X-012-Sender: halo1@inter.net.il To: Michael Albinus Message-id: <834omd6xyp.fsf@gnu.org> References: <83hbqe77l7.fsf@gnu.org> <83iqau7bso.fsf@gnu.org> <83eili76in.fsf@gnu.org> <838wbq6mmo.fsf@gnu.org> <87pr51g6sr.fsf@gmx.de> X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 5447 Cc: monnier@IRO.UMontreal.CA, 5447@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: -1.8 (-) > From: Michael Albinus > Cc: Stefan Monnier , 5447@debbugs.gnu.org > Date: Fri, 22 Jan 2010 22:37:24 +0100 > > Eli Zaretskii writes: > > > Michael, how hard would it be to special-case "\`[a-z]:/" on Windows so > > that matching files are never considered to be ``remote files''? > > IIRC, there was the case that "/method:host:" was expanded to > "C:/method:host:" by I-dont-know-which-package. Exactly because of this > problem we have the `tramp-drop-volume-letter' function. We could do that nevertheless, and wait for someone to holler, couldn't we? I think punishing 95% of innocent users for the benefit of maybe 5% is wrong anyway, and some different solution should be found. I agree that we cannot find a better solution until we know the use-case. But leaving this code intact will never get us to that point. From unknown Sat Sep 20 02:11:24 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, 20 Feb 2010 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator