From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bug-gnu-emacs@gnu.org (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#5447: marked as done (23.1.91; load-file fails for C:/the-file.el.gz) Date: Fri, 22 Jan 2010 10:34:01 +0000 Message-ID: References: <83hbqe77l7.fsf@gnu.org> <83iqau7bso.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1264156441-15261-0" X-Trace: ger.gmane.org 1264156807 5867 80.91.229.12 (22 Jan 2010 10:40:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Jan 2010 10:40:07 +0000 (UTC) Cc: emacs-bug-tracker@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 22 11:39:59 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NYGvn-0002XT-7s for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Jan 2010 11:39:59 +0100 Original-Received: from localhost ([127.0.0.1]:34708 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYGvn-0000EW-PT for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Jan 2010 05:40:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYGvg-0000CM-Ju for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 05:39:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYGva-00006v-VG for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 05:39:51 -0500 Original-Received: from [199.232.76.173] (port=51004 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYGvW-0008Up-CT; Fri, 22 Jan 2010 05:39:42 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48876) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NYGvQ-0005RU-Cz; Fri, 22 Jan 2010 05:39:36 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NYGq1-0003yB-Sk; Fri, 22 Jan 2010 05:34:01 -0500 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: closed 5447 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34614 Archived-At: This is a multi-part message in MIME format... ------------=_1264156441-15261-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Fri, 22 Jan 2010 12:32:52 +0200 with message-id <83hbqe77l7.fsf@gnu.org> and subject line Re: bug#5447: 23.1.91; load-file fails for C:/the-file.el.= gz has caused the Emacs bug report #5447, regarding 23.1.91; load-file fails for C:/the-file.el.gz to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact bug-gnu-emacs@gnu.org immediately.) --=20 5447: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5447 Emacs Bug Tracking System Contact bug-gnu-emacs@gnu.org with problems ------------=_1264156441-15261-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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) ------------=_1264156441-15261-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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))) ------------=_1264156441-15261-0--