From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug, org] footnote-action broken with narrowed buffer Date: Tue, 28 Apr 2015 01:43:14 +0200 Message-ID: <87zj5t87e5.fsf@gmx.us> 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> <87h9s1ry6i.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]:52405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymsh1-0002w1-1R for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 19:44:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmsgW-0007qp-DF for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 19:43:35 -0400 Received: from plane.gmane.org ([80.91.229.3]:52198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmsgW-0007qF-5k for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 19:43:32 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YmsgT-00086a-Le for emacs-orgmode@gnu.org; Tue, 28 Apr 2015 01:43:29 +0200 Received: from tsn77-247-182-241.dyn.nltelcom.net ([77.247.182.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Apr 2015 01:43:29 +0200 Received: from rasmus by tsn77-247-182-241.dyn.nltelcom.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Apr 2015 01:43:29 +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: >> 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? To have a defcustom that let you choose preferred method. Whether the default should be changed I don't know. > 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, There's no need IMO. ATM it moves to the second colon and I don't see other logical ways to handle it. > as you noticed it doesn't allow to create footnotes either (though this > one is trivial to fix). Would be great. > Also, jumping to a footnote may still be useful, e.g. with nested > footnotes. It is symmetric, too. Of course. But in particular when editing it may be useful to have a view like this where you can see both the main text and the fn buffer: |--------| | main | | buf | |--------| | fn buf | |--------| > 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". C-c C-c would then depend on a defcustom, I guess. At least it's a pity if C-c C-c only works in some cases, e.g. "if not narrowed". >> Note that new footnotes currently break the narrow, which is pretty >> annoying. > > I know. This is bad, indeed. OK. Rasmus -- ⠠⠵