From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug, org] footnote-action broken with narrowed buffer Date: Fri, 24 Apr 2015 22:35:58 +0200 Message-ID: <87h9s5z2kx.fsf@gmx.us> References: <87lhhhzdf5.fsf@gmx.us> <87bnidcnfq.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlkKf-0001Qs-Vf for emacs-orgmode@gnu.org; Fri, 24 Apr 2015 16:36:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlkKb-0007K7-T1 for emacs-orgmode@gnu.org; Fri, 24 Apr 2015 16:36:17 -0400 Received: from plane.gmane.org ([80.91.229.3]:34619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlkKb-0007JS-N7 for emacs-orgmode@gnu.org; Fri, 24 Apr 2015 16:36:13 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YlkKZ-0006Bc-AC for emacs-orgmode@gnu.org; Fri, 24 Apr 2015 22:36:11 +0200 Received: from f052144110.adsl.alicedsl.de ([78.52.144.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Apr 2015 22:36:11 +0200 Received: from rasmus by f052144110.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Apr 2015 22:36:11 +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: > 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. 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