From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Alekseyev Subject: Help with org-link-translation-function Date: Tue, 4 Jan 2011 05:40:30 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=59250 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pa5Fh-00010I-Ca for emacs-orgmode@gnu.org; Tue, 04 Jan 2011 06:40:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pa5Fg-00077x-Bq for emacs-orgmode@gnu.org; Tue, 04 Jan 2011 06:40:33 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:48708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pa5Fg-00077o-45 for emacs-orgmode@gnu.org; Tue, 04 Jan 2011 06:40:32 -0500 Received: by fxm12 with SMTP id 12so7404698fxm.0 for ; Tue, 04 Jan 2011 03:40:30 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi All, I am trying to achieve the following: any link of the form [[/ssh:host:/path/to/file]] should, when followed, be translated to [[/plink:host:/path/to/file]] (without being textually altered, of course). The reason for this is that Emacs Tramp under Windows refuses to cooperate with OpenSSH and can't handle SSH links. The only workaround I've found is to use the plink protocol instead of SSH. I think what I'm trying to achieve is possible with org-link-translation-function, but my naive attempts haven't been successful... Any help would be greatly appreciated! --Leo