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 19:06:18 +0200 Organization: ThierryVolpiatto Message-ID: <87pqwdzkhh.fsf@tux.homenetwork> References: <878w32xb4k.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284658859 24650 80.91.229.12 (16 Sep 2010 17:40:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Sep 2010 17:40:59 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 16 19:40:57 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 1OwIS6-00032E-Bg for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Sep 2010 19:40:54 +0200 Original-Received: from localhost ([127.0.0.1]:44789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwIS5-000788-LV for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Sep 2010 13:40:53 -0400 Original-Received: from [140.186.70.92] (port=56235 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwIRw-00077j-6y for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 13:40:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwIRu-0007cK-Oz for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 13:40:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38276) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwIRu-0007cC-Id for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 13:40:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OwHyF-00071o-Rp; Thu, 16 Sep 2010 13:10:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87pqwe19mb.fsf@tux.homenetwork> 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 17:10:03 +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.128465696527004 (code B ref -1); Thu, 16 Sep 2010 17:10:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Sep 2010 17:09:25 +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 1OwHxc-00071V-Jg for submit@debbugs.gnu.org; Thu, 16 Sep 2010 13:09:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwHxZ-00071O-7C for submit@debbugs.gnu.org; Thu, 16 Sep 2010 13:09:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwHzo-0001jl-A7 for submit@debbugs.gnu.org; Thu, 16 Sep 2010 13:11:41 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:50060) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwHzi-0001gY-Kp for submit@debbugs.gnu.org; Thu, 16 Sep 2010 13:11:40 -0400 Original-Received: from [140.186.70.92] (port=47993 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwHyW-0006iQ-5F for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 13:10:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwHwr-0001G5-W8 for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 13:08:39 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:54941) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwHwr-0001Fw-M9 for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 13:08:37 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OwHwo-0007Ns-Ny for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 19:08:34 +0200 Original-Received: from 236.211.85-79.rev.gaoland.net ([79.85.211.236]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Sep 2010 19:08:34 +0200 Original-Received: from thierry.volpiatto by 236.211.85-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Sep 2010 19:08:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 62 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 236.211.85-79.rev.gaoland.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:UltROU+uySgvFrGbTiMa1qRQcFY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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 13:10:03 -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:40217 Archived-At: Michael Albinus writes: > Thierry Volpiatto writes: > >> Hi Michael, > > Hi Thierry, > >>> Works for me. Maybe, tramp-loaddefs.el is not regenerated? >> Don't know, is the makefile aware of this file? > > It should, I have committed the patch at once, including Makefile.in > changes. However, a simple "make" does NOT generate autoloads (not only > for Tramp). > >>> Try # cd lisp; make autoloads >> Sorry, i can't do that yet as the emacs24 i have is installed by gentoo >> from bzr, but the makefiles are removed in directory. >> Maybe i can try to load the file itself? (need to switch i am on 23 now) > > Do you use Tramp outside the Emacs distribution? Have you downloaded > from the Tramp repo? No i use tramp that come with Emacs. >> It's just a problem of loading the definition of >> tramp-handle-directory-files, what i do here in anything-config.el >> because i need this definition for compatibility with emacs versions < 23.2. >> So it is working fine with this definition loaded. > > 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. 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 ;-) -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997