From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: [patch] correct link following Date: Sun, 03 Nov 2013 18:52:21 +0700 Message-ID: <8761s9d7nu.wl%n142857@gmail.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcwER-0001eB-1F for emacs-orgmode@gnu.org; Sun, 03 Nov 2013 06:52:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VcwEI-0007nZ-8M for emacs-orgmode@gnu.org; Sun, 03 Nov 2013 06:52:38 -0500 Received: from mail-pd0-x22e.google.com ([2607:f8b0:400e:c02::22e]:35974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcwEH-0007lt-Uf for emacs-orgmode@gnu.org; Sun, 03 Nov 2013 06:52:30 -0500 Received: by mail-pd0-f174.google.com with SMTP id z10so5646882pdj.19 for ; Sun, 03 Nov 2013 03:52:27 -0800 (PST) Received: from 2d2.gmail.com ([139.193.211.204]) by mx.google.com with ESMTPSA id ed3sm21839167pbc.6.2013.11.03.03.52.25 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 03 Nov 2013 03:52:26 -0800 (PST) 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: org-mode Mailinglist Hi, I sent this patch 1 month ago but it wasn't included in org. I still need it for link following to work, otherwise I get: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("^id:" nil) org-open-at-point(nil) call-interactively(org-open-at-point nil nil) command-execute(org-open-at-point) I remember seeing another bug report on this list providing the same solution. Thanks. diff --git a/lisp/org.el b/lisp/org.el index c42b9eb..01b39be 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -10517,7 +10517,8 @@ application the system uses for this file type." ((and (string= type "thisfile") (or (run-hook-with-args-until-success 'org-open-link-functions path) - (and (string-match "^id:" link) + (and link + (string-match "^id:" link) (or (featurep 'org-id) (require 'org-id)) (progn (funcall (nth 1 (assoc "id" org-link-protocols))