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: Nicolas Goaziou
Subject: Re: [O] [bug, org] footnote-action broken with narrowed buffer
Date: Sat, 25 Apr 2015 14:17:51 +0200

Rasmus <address@hidden> writes:

> If it covers x%, for x large, of the realized usecases when working with a
> narrowed buffer it's still "worth" it.

Please do not mess with user's narrowing. There's no valid reason to do
this, no matter how large x is.

> In any case, how about some of these alternative approaches to the issue
> of handling footnotes from a narrowed buffer.
>
>    1. Retrieve the footnote in the minibuffer.  E.g. org-footnote-action
>       shows the footnote-definition if it is outside of the narrow (and
>       known) in the minibuffer?  E.g. 2. when using prefix.

I suggested it already in this thread, i.e., if the definition is
outside the narrowed part of the buffer, offer to widen and jump to it,
or display the definition, or do nothing.

Actually, displaying the definition could be a separate binding (e.g.,
C-u C-c C-c), since it could be useful even outside this case.

>    2. Show the definition in the minibuffer as editable text (read input)
>       and update it if necessary.

Then you have to deal with out of sync buffers, closed buffers,.. 

I'm pretty sure that in this situation, the user is able to widen the
buffer himself and then jump to the definition in order to edit it. This
would be a lot of trouble for a debatable benefit.

>    3. A way to quickly get back to the previous narrow (this should
>       probably be an Emacs-core feature).

It doesn't belong to Org to implement it anyway.


Regards,



reply via email to

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