From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#7040: 24.0.50; tramp-handle-directory-files is not loaded Date: Thu, 16 Sep 2010 23:19:40 +0200 Organization: ThierryVolpiatto Message-ID: <87r5gtz8r7.fsf@tux.homenetwork> References: <878w32xb4k.fsf@tux.homenetwork> <87pqwdzkhh.fsf@tux.homenetwork> <87lj71bdm6.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284673252 27767 80.91.229.12 (16 Sep 2010 21:40:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Sep 2010 21:40:52 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 16 23:40:50 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.69) (envelope-from ) id 1OwMCG-0000ji-Gf for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Sep 2010 23:40:48 +0200 Original-Received: from localhost ([127.0.0.1]:34024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwMCF-0006mc-C1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Sep 2010 17:40:47 -0400 Original-Received: from [140.186.70.92] (port=52229 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwMC8-0006lY-KJ for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 17:40:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwMC7-0004Cw-8S for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 17:40:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58213) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwMC7-0004Cr-6E for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 17:40:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OwLzt-0002Oq-Ne; Thu, 16 Sep 2010 17:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Sep 2010 21:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7040 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.12846724429215 (code B ref -1); Thu, 16 Sep 2010 21:28:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Sep 2010 21:27:22 +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 1OwLzF-0002Oa-Kx for submit@debbugs.gnu.org; Thu, 16 Sep 2010 17:27:22 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwLzD-0002OV-PG for submit@debbugs.gnu.org; Thu, 16 Sep 2010 17:27:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwM1T-0002dA-9X for submit@debbugs.gnu.org; Thu, 16 Sep 2010 17:29:40 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:39422) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwM1T-0002d4-7G for submit@debbugs.gnu.org; Thu, 16 Sep 2010 17:29:39 -0400 Original-Received: from [140.186.70.92] (port=39118 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwM1Q-0003ZP-VY for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 17:29:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwLtg-0001Pm-Oq for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 17:21:38 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:33870) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwLtg-0001PN-H5 for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 17:21:36 -0400 Original-Received: by wyb36 with SMTP id 36so2253914wyb.0 for ; Thu, 16 Sep 2010 14:21:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :organization:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=M+7vOELbL4h6ZFt92xDczvA1SmD1/uQ9QRfYP6HZiBk=; b=AKXhXK0OXhf928owZmTXPQiHRtRPNPVYsGtDLVmMmLr7QaAf0XUluJY3mHe9cpG7H8 d++0GcWtG4+XG6gB9kUIogB+AUBCOdWo/6BM0mHNPRZUQujDvbIXSnEggMjxUytsf+ii P0hxyEgXlVDhCcmA4t5v+i6em4aO/sm2YQvcg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=qXL3STUzfrzdxfPcaa0rFU/CScCKyxOvDQawPceq/DcGyGfODdgyGnpr2lgN6stGrZ kmcgU017lWtdU5dGBsCORuMXJJR9IgSdBXWdnMGUPo/Im8mzdzZXy0ol0d7AJ7GWSdv/ 1s38vpyXyMsFgwlqrcppkLrDUq4Fwnr+w9ciA= Original-Received: by 10.227.129.149 with SMTP id o21mr3356117wbs.176.1284672093224; Thu, 16 Sep 2010 14:21:33 -0700 (PDT) Original-Received: from tux.homenetwork (156.78.88-79.rev.gaoland.net [79.88.78.156]) by mx.google.com with ESMTPS id e31sm2708331wbe.11.2010.09.16.14.21.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 16 Sep 2010 14:21:32 -0700 (PDT) In-Reply-To: <87lj71bdm6.fsf@gmx.de> (Michael Albinus's message of "Thu, 16 Sep 2010 23:08:33 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 16 Sep 2010 17:28:01 -0400 X-detected-operating-system: by eggs.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:40232 Archived-At: Michael Albinus writes: > Thierry Volpiatto writes: > >>> Oops, it is not recommended to call `tramp-handle-*' functions directly >>> (you would bypass locking mechanisms). >> >> Yes, but i don't call this function directly, i just inline the actual >> tramp-handle-directory-files to allow users of old tramp/emacs version >> to use this version of the function that fix ".", "..", and sorting >> (what we have fixed some months ago). >> >> At first it was inlined inside a function with a flet, but i realized >> that it is not called when i copy/rename, etc.. files, so it is now >> (re)defined as defun. >> >> I think the definition inlined in flet was confusing tramp. > > Maybe the best solution is defadvice. Then you don't need to redefine > Tramp's internals (and you are independent from further changes in that > function). Well, i don't like defadvice, so i will see if i maintain this as emacs23.2 is a stable emacs version. Thank you anyway for your help and advices. >> I have now tried in emacs -Q (so without anything) and copy recursively >> from remote work fine. >> >>> With recent Tramp 2.2, those >>> functions have been moved to another package. Likely, that's why you >>> don't see them. Instead of, call >>> >>> (tramp-file-name-handler 'directory-files ...) >> >> Ok thanks, that's good to know, but as said above i don't use >> tramp-handle-directory-files directly, i let tramp do the job. >> >> Sorry for the noise, but things are clearer now, thanks ;-) > > So we can close the bug report? Yes. > Best regards, Michael. > -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997