From mboxrd@z Thu Jan 1 00:00:00 1970 From: mirko Subject: bug in org-create-link? Date: Mon, 24 Feb 2014 17:23:25 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHzG2-0006WR-1u for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 12:24:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHzFu-0003m8-Oc for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 12:23:57 -0500 Received: from plane.gmane.org ([80.91.229.3]:39152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHzFu-0003lz-Hg for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 12:23:50 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WHzFs-0002zc-Rt for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 18:23:49 +0100 Received: from teaaus0033.telusa.com ([208.218.238.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Feb 2014 18:23:48 +0100 Received: from mirko.vukovic by teaaus0033.telusa.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Feb 2014 18:23:48 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org The following is with release_8.2.5h-649-g2ae5cf. I get an error when creating a link to a file. The error originates in code (cond ((equal desc "NONE") (setq desc nil)) ((string-match org-bracket-link-analytic-regexp desc) ...) ...) I think the error is due to a quirk in my setup, which I was not able to isolate yet. I do not get this error with all files, only some of them. I wonder whether there is some inconsistency in the code. In the lines immediately preceding the cond statement, desc is set to NIL: (setq link (or link cpltxt) desc (or desc cpltxt)) Should desc be set to "NONE" by default like so: (setq link (or link cpltxt) desc (or desc cpltxt "NONE")) Then the cond statement would be able to handle it. I hope someone can answer that question quicker than for me to figure out the full logic of the code. Thanks, Mirko