Rasmus <ras...@gmx.us> writes: > Hi Puneeth, > > Thanks for your patch. > > Puneeth Chaganti <puncha...@gmail.com> writes: > >> I've attached a one-line patch to fix `org-id-goto' if the target >> buffer is narrowed. Let me know if this fix sounds reasonable or if >> you have other suggestions! > > It's not obvious that org should change a—potentially—carefully selected > narrowed region.
Org mode already does this aggressively and often. For instance, it irrevocably widens all buffers associated with org-agenda-files when generating the agenda. (To replicate, try narrowing to a headline in a buffer and then calling the agenda.) The same is true of follow mode; it widens a buffer once one moves to a line in the agenda corresponding to that buffer. In other words, org currently does not go out of its way to protect user's narrowed regions. +1 on my part for widening a buffer if it contains a relevant id target. If I click org-id-goto and the target is in my buffer, I want it to widen that buffer. Matt