* [patch] correct link following
@ 2013-11-03 11:52 Daniel Clemente
2013-11-03 12:09 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Clemente @ 2013-11-03 11:52 UTC (permalink / raw)
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))
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch] correct link following
2013-11-03 11:52 [patch] correct link following Daniel Clemente
@ 2013-11-03 12:09 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2013-11-03 12:09 UTC (permalink / raw)
To: Daniel Clemente; +Cc: org-mode Mailinglist
Hello,
Daniel Clemente <n142857@gmail.com> writes:
> 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)
Applied. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-03 12:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-03 11:52 [patch] correct link following Daniel Clemente
2013-11-03 12:09 ` Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.