From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.tramp,gmane.emacs.devel Subject: Re: cl-byte-compile-compiler-macro Date: Sat, 25 Mar 2006 15:20:10 +0100 Message-ID: References: <1t3bh8soqw.fsf@fencepost.gnu.org> <2wacbf6xt1.fsf@fencepost.gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1143296436 7716 80.91.229.2 (25 Mar 2006 14:20:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Mar 2006 14:20:36 +0000 (UTC) Cc: tramp-devel@gnu.org, emacs-devel@gnu.org, storm@cua.dk Original-X-From: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Sat Mar 25 15:20:33 2006 Return-path: Envelope-to: tramp@deer.gmane.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FN9d0-0005VK-EJ for tramp@deer.gmane.org; Sat, 25 Mar 2006 15:20:30 +0100 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FN9d0-0002BY-00 for ; Sat, 25 Mar 2006 15:20:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FN9cz-00012S-RB for tramp@quimby.gnus.org; Sat, 25 Mar 2006 09:20:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FN9cr-000129-RH for tramp-devel@gnu.org; Sat, 25 Mar 2006 09:20:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FN9cq-00011q-J5 for tramp-devel@gnu.org; Sat, 25 Mar 2006 09:20:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FN9cn-00011H-Se; Sat, 25 Mar 2006 09:20:17 -0500 Original-Received: from [195.135.220.2] (helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FN9dn-0006iL-28; Sat, 25 Mar 2006 09:21:19 -0500 Original-Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 93162EBB7; Sat, 25 Mar 2006 15:20:10 +0100 (CET) Original-To: rms@gnu.org X-Yow: FEELINGS are cascading over me!!! In-Reply-To: <2wacbf6xt1.fsf@fencepost.gnu.org> (Glenn Morris's message of "Fri, 24 Mar 2006 21:52:10 -0500") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: tramp-devel.gnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Errors-To: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Xref: news.gmane.org gmane.emacs.tramp:3871 gmane.emacs.devel:52047 Archived-At: Glenn Morris writes: > Richard Stallman wrote: > >> Yes, I see this the first time (in any emacs session) I use C-x v = =3D on >> a file under CVS control. I don't see it with `emacs -q' though. >> >> Can you track down which customization causes it? > > For me, commenting out the line "(require 'tramp)" in my .emacs stops > this error appearing on my first call to vc-diff. If I start emacs > with -q, require tramp, and then use vc-diff, I don't see the error, > however; so it's not quite that simple. tramp.elc does at least > contain "cl-byte-compile-compiler-macro". I think the problem is that (defstruct tramp-file-name) needs to be moved before its first use (in with-parsed-tramp-file-name). Can you still reproduce it when you apply this patch? --- lisp/net/tramp.el.~1.89.~ 2006-02-13 11:08:07.000000000 +0100 +++ lisp/net/tramp.el 2006-03-25 15:17:34.000000000 +0100 @@ -1995,6 +1995,8 @@ own implementation." ((fboundp 'point-at-eol) (funcall (symbol-function 'point-at-eol))) (t (save-excursion (end-of-line) (point))))) =20 +(defstruct tramp-file-name multi-method method user host localname) + (defmacro with-parsed-tramp-file-name (filename var &rest body) "Parse a Tramp filename and make components available in the body. =20 @@ -6866,8 +6868,6 @@ Not actually used. Use `(format \"%o\"=20 ;; internal data structure. Convenience functions for internal ;; data structure. =20 -(defstruct tramp-file-name multi-method method user host localname) - (defun tramp-tramp-file-p (name) "Return t iff NAME is a tramp file." (save-match-data Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."