Hi Anders, Nicolas I am wondering what the status of this patch is. There was a discussion, but I am not sure about the conclusion...
- Carsten On Aug 28, 2011, at 10:05 PM, Anders Waldenborg wrote: > Hi! > > If an org buffer is narrowed, and one tries to do org-open-at-point on > a link that points to outside of the restriction it asks: "No match - > create this as a new heading?". When answering no the buffer is > widened and the reseach is done, and if the link still can't be > resolved the question is asked again. > > For nonexistant links this happens even if the buffer isn't narrowed - > one needs to answer "n" twice. > > I also attached an alternate patch which (IMHO) simplifies the > implementation by hiding the hard work in a macro, and as a bonus it > only calls org-link-search once. But it is much more intrusive. > > anders > > ;; simple testcase to show the bug > (progn > (insert "* A\n\n* B\n\n[[A]]") > (org-narrow-to-subtree) > (org-open-at-point)) > <org-open-at-point.patch><org-open-at-point-alternate.patch> - Carsten