Re: [O] PATCH Make org-open-at-point only ask once

2011-10-06 Thread Carsten Dominik
On Oct 6, 2011, at 11:51 AM, Anders Waldenborg wrote: > For the record, I'm below the limit of a cumulative change of 20 > non-repetitive change lines. Yes, I have marked the change as TINYCHANGE - Carsten > > On Thu, Oct 06, 2011 at 10:54:10AM +0200, Carsten Dominik wrote: >> OK, I have acc

Re: [O] PATCH Make org-open-at-point only ask once

2011-10-06 Thread Anders Waldenborg
For the record, I'm below the limit of a cumulative change of 20 non-repetitive change lines. On Thu, Oct 06, 2011 at 10:54:10AM +0200, Carsten Dominik wrote: > OK, I have accepted the patch. Thanks > > - Carsten > > On Oct 6, 2011, at 10:43 AM, Anders Waldenborg wrote: > > > On Thu, Oct 06, 2

Re: [O] PATCH Make org-open-at-point only ask once

2011-10-06 Thread Carsten Dominik
OK, I have accepted the patch. Thanks - Carsten On Oct 6, 2011, at 10:43 AM, Anders Waldenborg wrote: > On Thu, Oct 06, 2011 at 10:00:38AM +0200, Carsten Dominik wrote: >> Hi Anders, Nicolas >> >> I am wondering what the status of this patch is. There was a discussion, >> but I am not sure a

Re: [O] PATCH Make org-open-at-point only ask once

2011-10-06 Thread Anders Waldenborg
On Thu, Oct 06, 2011 at 10:00:38AM +0200, Carsten Dominik wrote: > 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, I think that the simple patch still is valid, I'm including it again below.

Re: [O] PATCH Make org-open-at-point only ask once

2011-10-06 Thread Carsten Dominik
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 tha

Re: [O] PATCH Make org-open-at-point only ask once

2011-08-29 Thread Nicolas Goaziou
Anders Waldenborg writes: > On Mon, Aug 29, 2011 at 11:36:19AM +0200, Nicolas Goaziou wrote: >> Maybe we should define a consistent link search: ignore the narrowing >> but first search in current sub-tree, if that fails (any error, I guess) >> search in current tree and if that one fails too, se

Re: [O] PATCH Make org-open-at-point only ask once

2011-08-29 Thread Anders Waldenborg
On Mon, Aug 29, 2011 at 11:36:19AM +0200, Nicolas Goaziou wrote: > Maybe we should define a consistent link search: ignore the narrowing > but first search in current sub-tree, if that fails (any error, I guess) > search in current tree and if that one fails too, search in the whole > buffer. So s

Re: [O] PATCH Make org-open-at-point only ask once

2011-08-29 Thread Nicolas Goaziou
Anders Waldenborg writes: > But for org links, I'm not 100% sure - consider this org-file: > > * Notes > * Some topic > [[Notes]] > ** Notes > > If buffer is widen, the link goes to the toplevel header, but if I > narrow to "Some topic" the link suddenly starts going to the > subheader. And I th

Re: [O] PATCH Make org-open-at-point only ask once

2011-08-29 Thread Anders Waldenborg
On Mon, Aug 29, 2011 at 09:14:13AM +0200, Nicolas Goaziou wrote: > Yes, imposing widening to the user is intrusive. Moreover, I think you > cannot avoid to call org-link-search twice (once it has failed): the > point is to do a local search and then a global one. Yes, "local then global" search ma

Re: [O] PATCH Make org-open-at-point only ask once

2011-08-29 Thread Nicolas Goaziou
Hello, Anders Waldenborg writes: > 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 s

[O] PATCH Make org-open-at-point only ask once

2011-08-28 Thread Anders Waldenborg
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