emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [bug, org] footnote-action broken with narrowed buffer


From: Rasmus
Subject: Re: [O] [bug, org] footnote-action broken with narrowed buffer
Date: Fri, 24 Apr 2015 22:35:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:

> Hello,
>
> Rasmus <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]