Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:

> Hello,
>
> Rasmus <ras...@gmx.us> writes:
>
>> Narrow to h1 in the following example and run org-footnote-action on the
>> footnote-reference.  Expected behavior is IMO to go to the definition.
>> This does not happen.
>
> I disagree. Interactive commands are not expected to break current
> narrowing (try, e.g., C-c C-n).

> We might however ask the user if he wants to widen in order to reach
> footnote definition, or display said definition in the echo area if he
> doesn't, and maybe introduce a variable to always do one of these.

Point is moved, though.  If narrow shouldn't be "broken" then point
shouldn't be moved.  I.e. no move when the definition is not within the
buffer.

>> Ideally, it should be possible to get back to the narrowed stage again,
>> but I'm not sure how this would work.  Perhaps hooking into next C-& or
>> org-footnote-action if it's performed from within the [:begin, :end] range
>> of the footnote-definition...
>
> I suggest to stay away from this kind of "smart" behaviour. 
>
> Outside of the most trivial case (i.e., jump back and forth between the
> definition and one of its references) it sounds like it would quickly
> get in the way.

It would only work for the most trivial case I guess.

—Rasmus

-- 
It was you, Jezebel, it was you


Reply via email to