From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug, org] footnote-action broken with narrowed buffer Date: Sat, 25 Apr 2015 14:17:51 +0200 Message-ID: <877ft0bdw0.fsf@nicolasgoaziou.fr> References: <87lhhhzdf5.fsf@gmx.us> <87bnidcnfq.fsf@nicolasgoaziou.fr> <87h9s5z2kx.fsf@gmx.us> <87fv7obnyb.fsf@nicolasgoaziou.fr> <87tww4xz4i.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ylz1K-00087A-DU for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 08:17:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ylz0X-0000CH-Vz for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 08:17:18 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:58985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ylz0X-0000BW-QH for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 08:16:29 -0400 In-Reply-To: <87tww4xz4i.fsf@gmx.us> (rasmus@gmx.us's message of "Sat, 25 Apr 2015 12:48:13 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Rasmus 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,