From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug, org] footnote-action broken with narrowed buffer Date: Sat, 25 Apr 2015 12:48:13 +0200 Message-ID: <87tww4xz4i.fsf@gmx.us> References: <87lhhhzdf5.fsf@gmx.us> <87bnidcnfq.fsf@nicolasgoaziou.fr> <87h9s5z2kx.fsf@gmx.us> <87fv7obnyb.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlxdF-0002tC-0v for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 06:48:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlxdB-0000LB-P9 for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 06:48:20 -0400 Received: from mout.gmx.net ([212.227.15.19]:57369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlxdB-0000Kw-BU for emacs-orgmode@gnu.org; Sat, 25 Apr 2015 06:48:17 -0400 Received: from x200s ([78.52.144.110]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MMBun-1YgBP31sU9-0082mn for ; Sat, 25 Apr 2015 12:48:16 +0200 In-Reply-To: <87fv7obnyb.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 25 Apr 2015 10:40:28 +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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Rasmus writes: > >> Nicolas Goaziou writes: > >> 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. > > Fixed in 5954f6aa25b51a3a9a8f258fb0f15ef51be31366. Thank you. > >>> 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. > > This is why it is not worth implementing. If it covers x%, for x large, of the realized usecases when working with a narrowed buffer it's still "worth" it. 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. 2. Show the definition in the minibuffer as editable text (read input) and update it if necessary. 3. A way to quickly get back to the previous narrow (this should probably be an Emacs-core feature). =E2=80=94Rasmus --=20 Enough with the bla bla!