From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alain.Cochard@unistra.fr Subject: Problem jumping back & forth between foonote ref and def with 'C-c C-c' Date: Fri, 20 Jul 2018 18:28:32 +0200 Message-ID: <23378.3504.425551.48897@frac.u-strasbg.fr> Reply-To: alain.cochard@unistra.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]:41042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgYGp-0000Iy-5E for emacs-orgmode@gnu.org; Fri, 20 Jul 2018 12:28:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgYGm-000653-09 for emacs-orgmode@gnu.org; Fri, 20 Jul 2018 12:28:43 -0400 Received: from smr1.u-strasbg.fr ([130.79.222.217]:51214 helo=mailhost.u-strasbg.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fgYGl-00063z-Nw for emacs-orgmode@gnu.org; Fri, 20 Jul 2018 12:28:39 -0400 Received: from local-mr.u-strasbg.fr (lmr2.u-strasbg.fr [172.30.21.2]) by smr1.u-strasbg.fr (Postfix) with ESMTP id 0D11D60189 for ; Fri, 20 Jul 2018 18:28:34 +0200 (CEST) Received: from local-mr.u-strasbg.fr (localhost [127.0.0.1]) by antivirus (Postfix) with ESMTP id E1A561FAB4 for ; Fri, 20 Jul 2018 18:28:34 +0200 (CEST) Received: from frac.u-strasbg.fr (AStrasbourg-651-1-154-190.w90-40.abo.wanadoo.fr [90.40.193.190]) (Authenticated sender: alain.cochard) by lmr2.u-strasbg.fr (Postfix) with ESMTPSA id A35C71FA08 for ; Fri, 20 Jul 2018 18:28:33 +0200 (CEST) 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: emacs-orgmode@gnu.org Hello. =20 I start emacs with emacs -Q -l .emacs.debug where the file .emacs.debug contains only (add-to-list 'load-path "/home/cochard/Org/Coch-git/org-mode/lisp") giving Emacs : GNU Emacs 24.5.1 (x86=5F64-redhat-linux-gnu, GTK+ Version 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Package: Org mode version 9.1.13 (release=5F9.1.13-894-gf79545 @ /home/cochard/Org/Coch-git/org-mode/lisp/) The manual says: =E2=80=98C-c C-c=E2=80=99 If the cursor is on a footnote reference, jump to the definition. If it is a the definition, jump back to the reference. =20 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=5F64-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=5F8.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=3F Thank you, regards. PS: note the typo in the manual excerpt: "If it is a the definition...". --=20 EOST (=C3=89cole et Observatoire des Sciences de la Terre)=20 IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue Ren=C3=A9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20= F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 =20= =20