fix a bug in org-open-at-point
commitc2443d48e99aa4c1044dd817b51298586ab197fe
authorNicolas Goaziou <n.goaziou@gmail.com>
Sat, 19 Feb 2011 14:03:38 +0000 (19 14:03 +0000)
committerBastien Guerry <bzg@altern.org>
Sat, 26 Feb 2011 17:14:38 +0000 (26 18:14 +0100)
tree77827b528da4ea90ba2e70d33780485153fe2737
parent67a7ba3ea32d60bd6c4833058ecbaff6476f5c11
fix a bug in org-open-at-point

My bad, wrong manipulation. Here is the patch.

To reproduce the error, you can type the following in a fresh Org
#+begin_src org
target some text <<<target>>> another text target
#+end_src

Using C-c C-o on any of the two links will return an error.
Regards,

>From f7738f3e9239fc4fddccc7850dad7a0936087a58 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <n.goaziou@gmail.com>
Date: Sat, 19 Feb 2011 09:37:48 +0100
Subject: [PATCH] Fix bug with link to radio target at beginning or end of buffer

* lisp/org.el (org-open-at-point): if a link to a radio target is the
  first, (resp. the last), element of a buffer, function cannot find
  the property change required to get its boundaries, and
  `buffer-substring' is called with an invalid nil argument.
lisp/org.el