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#5303: 23.1.91; Cannot load .emacs-history from savehist.el Date: Tue, 19 Jan 2010 14:40:53 +0100 Message-ID: <87r5pm2owq.fsf@gmx.de> References: <8F73D1539CE042B8A9B48F767127C43B@us.oracle.com> <87bpgtu9o5.fsf@stupidchicken.com> <87aawc1xlb.fsf@gmx.de> <8763701whc.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1263910251 8297 80.91.229.12 (19 Jan 2010 14:10:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Jan 2010 14:10:51 +0000 (UTC) Cc: 5303@debbugs.gnu.org, Chong Yidong To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 19 15:10:43 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 1NXEn2-0002LG-H4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jan 2010 15:10:41 +0100 Original-Received: from localhost ([127.0.0.1]:34987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXEn3-0004FK-AT for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jan 2010 09:10:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXEm2-0003Wo-CI for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2010 09:09:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXElx-0003U5-Q4 for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2010 09:09:37 -0500 Original-Received: from [199.232.76.173] (port=42311 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXElx-0003Tu-Eu for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2010 09:09:33 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54897) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXElw-0007Gz-TX for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2010 09:09:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NXELJ-0001Pk-SC; Tue, 19 Jan 2010 08:42:01 -0500 X-Loop: bug-gnu-emacs@gnu.org In-Reply-To: <8F73D1539CE042B8A9B48F767127C43B@us.oracle.com> 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, 19 Jan 2010 13:42:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5303 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5303-submit@debbugs.gnu.org id=B5303.12639084665404 (code B ref 5303); Tue, 19 Jan 2010 13:42:01 +0000 Original-Received: (at 5303) by debbugs.gnu.org; 19 Jan 2010 13:41:06 +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 1NXEKP-0001P3-Pb for submit@debbugs.gnu.org; Tue, 19 Jan 2010 08:41:06 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NXEKM-0001Oe-1W for 5303@debbugs.gnu.org; Tue, 19 Jan 2010 08:41:03 -0500 Original-Received: (qmail invoked by alias); 19 Jan 2010 13:40:55 -0000 Original-Received: from p4FC009DE.dip0.t-ipconnect.de (EHLO LKG29808F.local) [79.192.9.222] by mail.gmx.net (mp064) with SMTP; 19 Jan 2010 14:40:55 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/crMM7ssLcbJDDZOd+BCniJXNt0DMcgvJKdKZHV6 Zxd+ib+nskAzhQ User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.79000000000000004,0.75,0.65000000000000002 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.6 (--) Resent-Date: Tue, 19 Jan 2010 08:42:01 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:34493 Archived-At: --=-=-= Lennart Borgman writes: > Yes, it is broken and it has been so for very long time. I just have > not understood before that it was in the special case with a file in > the root of a w32 drive. I could break down the example file from Drew to the following contents: --=-=-= Content-Disposition: inline; filename=emacs-history Content-Transfer-Encoding: 8bit (setq command-history '((describe-key ""))) --=-=-= When enabling traces of all Tramp functions, I see --=-=-= Content-Disposition: inline; filename=2 ====================================================================== 1 -> tramp-completion-file-name-handler: operation=load args=("c:/emacs-history" nil nil t) | 2 -> tramp-completion-run-real-handler: operation=load args=("c:/emacs-history" nil nil t) | | 3 -> tramp-completion-file-name-handler: operation=substitute-in-file-name args=("c:/emacs-history") | | | 4 -> tramp-completion-run-real-handler: operation=substitute-in-file-name args=("c:/emacs-history") | | | 4 <- tramp-completion-run-real-handler: "c:/emacs-history" | | 3 <- tramp-completion-file-name-handler: "c:/emacs-history" | | 3 -> tramp-completion-file-name-handler: operation=expand-file-name args=("c:/emacs-history" "l:/usr/local/src/emacs-jabber") | | | 4 -> tramp-completion-run-real-handler: operation=expand-file-name args=("c:/emacs-history" "l:/usr/local/src/emacs-jabber") | | | 4 <- tramp-completion-run-real-handler: "c:/emacs-history" | | 3 <- tramp-completion-file-name-handler: "c:/emacs-history" | | 3 -> tramp-completion-file-name-handler: operation=expand-file-name args=("c:/emacs-history" nil) | | | 4 -> tramp-completion-run-real-handler: operation=expand-file-name args=("c:/emacs-history" nil) | | | 4 <- tramp-completion-run-real-handler: "c:/emacs-history" | | 3 <- tramp-completion-file-name-handler: "c:/emacs-history" | | 3 -> tramp-completion-file-name-handler: operation=file-readable-p args=("c:/emacs-history") | | | 4 -> tramp-completion-run-real-handler: operation=file-readable-p args=("c:/emacs-history") | | | | 5 -> tramp-completion-file-name-handler: operation=expand-file-name args=("c:/emacs-history" nil) | | | | | 6 -> tramp-completion-run-real-handler: operation=expand-file-name args=("c:/emacs-history" nil) | | | | | 6 <- tramp-completion-run-real-handler: "c:/emacs-history" | | | | 5 <- tramp-completion-file-name-handler: "c:/emacs-history" | | | 4 <- tramp-completion-run-real-handler: t | | 3 <- tramp-completion-file-name-handler: t | | 3 -> tramp-completion-file-name-handler: operation=expand-file-name args=("c:/emacs-history" "c:/") | | | 4 -> tramp-completion-run-real-handler: operation=expand-file-name args=("c:/emacs-history" "c:/") | | | 4 <- tramp-completion-run-real-handler: "c:/emacs-history" | | 3 <- tramp-completion-file-name-handler: "c:/emacs-history" | | 3 -> tramp-completion-file-name-handler: operation=file-directory-p args=("c:/emacs-history") | | | 4 -> tramp-completion-run-real-handler: operation=file-directory-p args=("c:/emacs-history") | | | | 5 -> tramp-completion-file-name-handler: operation=expand-file-name args=("c:/emacs-history" "c:/") | | | | | 6 -> tramp-completion-run-real-handler: operation=expand-file-name args=("c:/emacs-history" "c:/") | | | | | 6 <- tramp-completion-run-real-handler: "c:/emacs-history" | | | | 5 <- tramp-completion-file-name-handler: "c:/emacs-history" | | | 4 <- tramp-completion-run-real-handler: nil | | 3 <- tramp-completion-file-name-handler: nil | | 3 -> tramp-completion-file-name-handler: operation=file-truename args=("c:/emacs-history") | | | 4 -> tramp-completion-run-real-handler: operation=file-truename args=("c:/emacs-history") | | | | 5 -> tramp-completion-file-name-handler: operation=expand-file-name args=("c:/emacs-history" nil) | | | | | 6 -> tramp-completion-run-real-handler: operation=expand-file-name args=("c:/emacs-history" nil) | | | | | 6 <- tramp-completion-run-real-handler: "c:/emacs-history" | | | | 5 <- tramp-completion-file-name-handler: "c:/emacs-history" | | | 4 <- tramp-completion-run-real-handler: "c:/emacs-history" | | 3 <- tramp-completion-file-name-handler: "c:/emacs-history" ====================================================================== --=-=-= As you can see, the error happens inside `tramp-completion-file-name-handler'. I've debugged it; the last action I can see is disabling Tramp' file name completion handler, and calling `load', again. The error does not seem to be caused inside a Tramp function. As I am not able to debug C sources on W32, I must let it to you. It seems to be something inside FLoad. > 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 to file names, which haven't one. Tramp silently removes the volume letter then, and continues. > And why does this file handler at all jump in during `load'? Shouldn't > tramp-completion-file-name-handler just come in during completion? It > should be invoked when the operations are file-name-completion or > file-name-all-completion (see > tramp-completion-file-name-handler-alist), but are these operations > used during `load'? In `tramp-completion-file-name-handler' it is checked, whether Emacs is in (file name) completion mode. If not, Tramp's file name completion handler is disables, and the function is re-called, recursively. Best regards, Michael. --=-=-=--