Hi Rasmus, On Sat, Oct 24, 2015 at 5:57 PM, Rasmus <ras...@gmx.us> wrote: > > However, you need to make sure that it only widens if ID is in the same > buffer and outside of the narrow. In particular, when ID is in another > file you shouldn’t widen. When it’s within the scope of the narrow it > shouldn’t widen. This ALREADY seems to be the case.
I will fix the patch to widen only when the target location is not within the narrow. But, I don't understand why we shouldn't be widening if the target location is in a different buffer. Can you explain? > However, your patch doesn’t work for me in the following example, starting > from emacs -q, adding /tmp/test.org (with the below content) to my agenda > list and requiring org-id, org-narrow-to-subtree on foo, and then > org-open-at-point on the link I had patched `org-id-goto' and looks like clicking on links uses `org-id-open'. I will resend a patch. I wonder if these two functions can reuse common code. -- Puneeth