From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Problem jumping back & forth between foonote ref and def with 'C-c C-c' Date: Tue, 21 Aug 2018 20:13:26 +0200 Message-ID: <87pnybh9kp.fsf@nicolasgoaziou.fr> References: <23378.3504.425551.48897@frac.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsENg-0000kA-RN for emacs-orgmode@gnu.org; Tue, 21 Aug 2018 17:40:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fsEMp-0002Oq-Tj for emacs-orgmode@gnu.org; Tue, 21 Aug 2018 17:39:17 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:35387) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fsEMo-0002Km-Ns for emacs-orgmode@gnu.org; Tue, 21 Aug 2018 17:39:10 -0400 In-Reply-To: <23378.3504.425551.48897@frac.u-strasbg.fr> (Alain Cochard's message of "Fri, 20 Jul 2018 18:28:32 +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" To: Alain.Cochard@unistra.fr Cc: emacs-orgmode@gnu.org Hello, Alain.Cochard@unistra.fr writes: > Now, I visit a file which contains only > > * head > foo[fn:1] bar > * Footnotes > > [fn:1] tnote > > If the cursor is anywhere within the 1st instance of '[fn:1] ' (that > is, including the space) and I type 'C-c C-c' the cursor ends up on > the 1st letter of 'tnote'. > > I am not sure if this corresponds to what the manual says but, if I > type 'C-c C-c' again, I get > > user-error: `C-c C-c' can do nothing useful here > > i.e., I don't "jump back." By contrast, with > > emacs -Q > > which gives > > Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version > 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Package: > Org-mode version 8.2.10 (release_8.2.10 @ > /usr/share/emacs/24.5/lisp/org/) > > if the cursor is anywhere within the 1st instance of '[fn:1]' and I > type 'C-c C-c' the cursor ends up on the space before 'tnote'. A 2nd > 'C-c C-c' brings the cursor back to the 1st '[' of the 1st '[fn:1]'. > This does correspond to what I would qualify as "jumping back." > > In other words, version 8.2.10 behaves as I expect, not the master > version. Am I doing/understanding something wrong? As strange as it may sound, I think both are correct. In 9.1, Org puts point at the location where you can start to edit the definition right away. If you want to "jump back", you can use the Org mark ring, or simply move backward -- a single character is enough but you can also move to the beginning of the line -- and use `C-c C-c' again. In 8.2, point is at a location where `C-c C-c' operates right away, but you still have to move forward to start editing the definition. My gut feelings is the current behaviour is slightly better, but YWWV. WDYT? > PS: note the typo in the manual excerpt: "If it is a the > definition...". This typo is not present in the latest manual. Regards, -- Nicolas Goaziou