From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug, org] footnote-action broken with narrowed buffer Date: Tue, 28 Apr 2015 00:41:57 +0200 Message-ID: <87h9s1ry6i.fsf@nicolasgoaziou.fr> References: <87lhhhzdf5.fsf@gmx.us> <87bnidcnfq.fsf@nicolasgoaziou.fr> <87h9s5z2kx.fsf@gmx.us> <87fv7obnyb.fsf@nicolasgoaziou.fr> <87tww4xz4i.fsf@gmx.us> <877ft0bdw0.fsf@nicolasgoaziou.fr> <87bnicxeax.fsf@gmx.us> <87oambrz4d.fsf@nicolasgoaziou.fr> <87h9s2d28g.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymrhd-0003NU-EK for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 18:40:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ymrhc-00040W-Bt for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 18:40:37 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:48633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymrhb-00040C-SJ for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 18:40:36 -0400 In-Reply-To: <87h9s2d28g.fsf@gmx.us> (rasmus@gmx.us's message of "Sun, 26 Apr 2015 23:11: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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > Would it make sense to allow this to hook into org-footnote-action? What do you mean by hooking it into `org-footnote-action'? To replace default action with this? This is not possible ATM because it doesn't handle inline footnotes at all (this requires some work in "org-src.el", since `org-src--edit-element' wasn't designed to edit inline objects), and, as you noticed it doesn't allow to create footnotes either (though this one is trivial to fix). Also, jumping to a footnote may still be useful, e.g. with nested footnotes. It is symmetric, too. However, interestingly, if both behaviours become mostly equivalent, we have first-class key bindings to choose from: "C-c C-o", "C-c '", "C-c C-c". > Note that new footnotes currently break the narrow, which is pretty > annoying. I know. This is bad, indeed. Regards,