From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephan Schmitt Subject: Bug when following a link (org-open-at-point) Date: Wed, 27 Sep 2006 11:41:48 +0200 Message-ID: <451A475C.6080504@cs.tu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GSUop-0000nR-Vg for emacs-orgmode@gnu.org; Wed, 27 Sep 2006 04:31:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GSUon-0000n8-9O for emacs-orgmode@gnu.org; Wed, 27 Sep 2006 04:31:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSUon-0000n1-08 for emacs-orgmode@gnu.org; Wed, 27 Sep 2006 04:31:01 -0400 Received: from [130.149.17.13] (helo=mail.cs.tu-berlin.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GSUtb-0005lN-Jo for emacs-orgmode@gnu.org; Wed, 27 Sep 2006 04:35:59 -0400 Received: from mailhost.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by mail.cs.tu-berlin.de (8.9.3p2/8.9.3) with ESMTP id KAA24398 for ; Wed, 27 Sep 2006 10:30:58 +0200 (MEST) Received: from localhost (localhost [127.0.0.1]) by mailhost.cs.tu-berlin.de (Postfix) with ESMTP id 81D01F215 for ; Wed, 27 Sep 2006 10:30:58 +0200 (MEST) Received: from mailhost.cs.tu-berlin.de ([127.0.0.1]) by localhost (mail.cs.tu-berlin.de [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id 03477-16 for ; Wed, 27 Sep 2006 10:30:58 +0200 (MEST) 15216 Received: from [130.149.24.75] (algieba.ni.cs.tu-berlin.de [130.149.24.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: drmabuse) by mailhost.cs.tu-berlin.de (Postfix) with ESMTP for ; Wed, 27 Sep 2006 10:30:58 +0200 (MEST) 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 hello, i just downloaded org-mode 4.50 and got an error when i tried to follow an internal link (C-c C-o, Mouse-2). i traced the problem back to following function in org.el: (defun org-file-remote-p (file) "Test whether FILE specifies a location on a remote system. Return non-nil if the location is indeed remote. For example, the filename \"/user@host:/foo\" specifies a location on the system \"/user@host:\"." (cond ((fboundp 'file-remote-p) (file-remote-p file)) ((fboundp 'tramp-handle-file-remote-p) (tramp-handle-file-remote-p file)) ((and (boundp 'ange-ftp-name-format) (string-match ange-ftp-name-format file)) t) (t nil))) the third condition (string-match ange-ftp-name-format file) tries to match a list against a string, ange-ftp.el: (defcustom ange-ftp-name-format '("^/\\(\\([^@/:]*\\)@\\)?\\([^@/:]*[^@/:.]\\):\\(.*\\)" . (3 2 4)) "*Format of a fully expanded remote file name. This is a list of the form \(REGEXP HOST USER NAME\), where REGEXP is a regular expression matching the full remote name, and HOST, USER, and NAME are the numbers of parenthesized expressions in REGEXP for the components (in that order)." :group 'ange-ftp :type '(list regexp (integer :tag "Host group") (integer :tag "User group") (integer :tag "Name group"))) i solved the problem by changing the condition (string-match ange-ftp-name-format file) into (string-match (car ange-ftp-name-format) file) best regards, stephan