From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: Making Emacs Lisp Code TRAMP-compatible Date: Thu, 08 Oct 2009 15:32:51 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87skdtvd70.fsf@lifelogs.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1255035305 27341 80.91.229.12 (8 Oct 2009 20:55:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Oct 2009 20:55:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 08 22:54:55 2009 Return-path: Envelope-to: geh-help-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 1Mvzv0-0002wk-Jq for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Oct 2009 22:48:58 +0200 Original-Received: from localhost ([127.0.0.1]:60568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mvzuz-00045a-Rm for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Oct 2009 16:48:57 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!feeder.erje.net!news.musoftware.de!wum.musoftware.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-X-Trace: news.albasani.net D2HMbEuo0nitA91eNzn2ooai7BsSY5hDWeTy1vxY0xb0qJ5NUZlC0lopbPtYbQXZ1CFHckxx3jhOUlpf8q4x48q4uzONDV3DZwjEkoJGjwI08iwoiV5i1lywBthwKaxb Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Thu, 8 Oct 2009 20:32:52 +0000 (UTC) X-User-ID: QgF1fCAf7TaP3VcmEdYCvQ9KqnV0iUkS2Cy4jT2TpB4= X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:xayAaB1E/h0B5Z2JySUscdgAivQ= sha1:nxzICLmym5lgU/BLnO7OHGPnUUE= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) X-NNTP-Posting-Host: 0UhNw54KpIODK8iIf95PTOOU8TwixHb0DTiP03joB3s= Original-Xref: news.stanford.edu gnu.emacs.help:173678 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68775 Archived-At: On Thu, 8 Oct 2009 08:18:41 -0700 (PDT) Nordlöw wrote: N> If I want my Emacs-Lisp app to be compatible with TRAMP which N> functions do I have to replace with TRAMP equivalents (tramp- N> handle-...)? N> All of them? Or is there a convenient way of replacing them all att N> once inside a file-scope? N> - directory-files() => tramp-handle-directory-files() N> - file-directory-p() => tramp-handle-file-directory-p() N> - ... Those are already calling Tramp functions when the filename matches the right pattern. In other words, as an example: /test => Emacs handler => local handler (non-Tramp) /ftp:...Tramp file... => Emacs handler => Tramp FTP handler So your application shouldn't have to do anything. Ted