From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerald Wildgruber Subject: Re: [PATCH] Re: Annoying positioning of point when writing footnotes Date: Fri, 14 Aug 2015 08:11:22 +0200 Message-ID: References: <87wpwzp7oj.fsf@unibas.ch> <87h9o3jhk6.fsf@fastmail.fm> <87vbcjp2b0.fsf@unibas.ch> <87io8jrrx6.fsf@fastmail.fm> <87egj7rr49.fsf_-_@fastmail.fm> <87egj6g4ea.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]:59124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ8D9-0001Wz-F7 for emacs-orgmode@gnu.org; Fri, 14 Aug 2015 02:11:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQ8D6-0004yv-4f for emacs-orgmode@gnu.org; Fri, 14 Aug 2015 02:11:27 -0400 Received: from mx1-priv.urz.unibas.ch ([131.152.226.164]:47991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ8D5-0004yX-UY for emacs-orgmode@gnu.org; Fri, 14 Aug 2015 02:11:24 -0400 In-reply-to: <87egj6g4ea.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Matt Lundin , orgmode list Thanks Matt and Nicolas! I still have org-footnote-auto-adjust set to "t" and the positioning of point near the footnote marker works now with the sources I checked out this morning! One thing though: if I insert a new footnote in a region of text that already has footnotes before and after, the auto adjust mechanism is triggered by "C-c C-x f", but in this case point is set NOT near the NEW footnote marker but always at the marker of the LAST footnote! Can this be fixed as well? Thanks Gerald. On Fr, Aug 14 2015, Nicolas Goaziou wrote: > Hello, > > Matt Lundin writes: > >> This patch should fix the issue. Testing is welcome. > > Thanks for the patch. > > However, `org-footnote-auto-adjust-maybe' needs to be called before > `org-edit-reference'. Otherwise, the footnote number in the remote > buffer is incorrect. > > The marker information is not reliable anymore after sorting footnotes, > so it should be dropped. I applied a patch along this line. > > > Regards, --=20 Dr.Gerald Wildgruber eikones NFS Bildkritik NCCR Iconic Criticism Universit=C3=A4t Basel Rheinsprung 11 CH-4051 Basel www.eikones.ch T. +41 (0)61 267 18 02 F. +41 (0)61 267 18 11 --------------------- Sent with mu4e