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#7040: 24.0.50; tramp-handle-directory-files is not loaded Date: Thu, 16 Sep 2010 23:08:33 +0200 Message-ID: <87lj71bdm6.fsf@gmx.de> References: <878w32xb4k.fsf@tux.homenetwork> <87pqwdzkhh.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284671486 20274 80.91.229.12 (16 Sep 2010 21:11:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Sep 2010 21:11:26 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 16 23:11:24 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 1OwLjj-0005w9-Bl for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Sep 2010 23:11:23 +0200 Original-Received: from localhost ([127.0.0.1]:39374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwLjh-0001F6-Bg for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Sep 2010 17:11:17 -0400 Original-Received: from [140.186.70.92] (port=51202 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwLj6-0000mZ-PH for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 17:10:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwLj4-0008Dl-P0 for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 17:10:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56758) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwLj4-0008Dh-MO for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 17:10:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OwLfZ-0002Gz-QB; Thu, 16 Sep 2010 17:07:01 -0400 X-Loop: help-debbugs@gnu.org 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: Thu, 16 Sep 2010 21:07: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.12846711868729 (code B ref -1); Thu, 16 Sep 2010 21:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Sep 2010 21:06:26 +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 1OwLf0-0002Gk-A1 for submit@debbugs.gnu.org; Thu, 16 Sep 2010 17:06:26 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwLey-0002Gd-SA for submit@debbugs.gnu.org; Thu, 16 Sep 2010 17:06:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwLhC-0007v7-AP for submit@debbugs.gnu.org; Thu, 16 Sep 2010 17:08:45 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:36918) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwLhC-0007v3-7B for submit@debbugs.gnu.org; Thu, 16 Sep 2010 17:08:42 -0400 Original-Received: from [140.186.70.92] (port=60467 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwLhA-0007d3-Ta for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 17:08:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwLh6-0007u4-Bg for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 17:08:40 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:49511 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OwLh5-0007tx-Tc for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2010 17:08:36 -0400 Original-Received: (qmail invoked by alias); 16 Sep 2010 21:08:34 -0000 Original-Received: from p4FC18F3D.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.193.143.61] by mail.gmx.net (mp065) with SMTP; 16 Sep 2010 23:08:34 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18IAa0w2QwIeb26ofDcb96yz9YY7HYWn2SBld2GRA zR19nCtMxfuAhP In-Reply-To: <87pqwdzkhh.fsf@tux.homenetwork> (Thierry Volpiatto's message of "Thu, 16 Sep 2010 19:06:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:07: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:40231 Archived-At: 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). > 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? Best regards, Michael.