From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug, org] footnote-action broken with narrowed buffer Date: Fri, 24 Apr 2015 21:54:01 +0200 Message-ID: <87bnidcnfq.fsf@nicolasgoaziou.fr> References: <87lhhhzdf5.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YljeU-0000Fa-Qc for emacs-orgmode@gnu.org; Fri, 24 Apr 2015 15:52:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YljeT-0006g0-So for emacs-orgmode@gnu.org; Fri, 24 Apr 2015 15:52:42 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:60114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YljeT-0006ft-MZ for emacs-orgmode@gnu.org; Fri, 24 Apr 2015 15:52:41 -0400 In-Reply-To: <87lhhhzdf5.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 24 Apr 2015 18:41:50 +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 Hello, Rasmus 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. > 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. > * h1 > foo[fn:1] > > * Footnotes > > [fn:1] bar Regards, -- Nicolas Goaziou