From: Arne Babenhauserheide <arne_bab@web.de>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: C-u M-x org-footnote-action sort deletes footnotes used in #+include:’d files [8.2.10 (release_8.2.10 @ /usr/share/emacs/25.3/lisp/org/)]
Date: Fri, 28 Dec 2018 11:58:07 +0100 [thread overview]
Message-ID: <877eftex4w.fsf@web.de> (raw)
In-Reply-To: <87ftui2f0l.fsf@nicolasgoaziou.fr>
[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]
Hi Nicolas,
Thank you for your answer!
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>> When a file uses #+include: X.org to structure an org-file and the
>> included files use footnotes defined in the master file, export works
>> without problems, but sorting the footnotes by reference with
>> : C-u M-x org-footnote-action s
>> removes the footnotes used in the included files.
> 1. test it with the latest Org release (9.2)?
I cannot easily test with the latest release, but
> 2. and, if that still fails, provide an ECM demonstrating your issue?
here’s a minimal release. Add it into an org-file, then create main.org
and sub.org with M-x org-babel-tangle. Finally run the code-block in
main.org.
#+BEGIN_SRC org :tangle main.org
,#+include: sub.org
Here is a footnote[fn:1]
run the following code block with C-c C-c and answer with =s=
,#+BEGIN_SRC elisp
(org-footnote-action t)
,#+END_SRC
,* Footnotes
[fn:1] footnote referenced in main
[fn:2] footnote referenced in sub
#+END_SRC
#+BEGIN_SRC org :tangle sub.org
This footnote will get lost[fn:2]
#+END_SRC
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein
ohne es zu merken
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1076 bytes --]
next prev parent reply other threads:[~2018-12-28 11:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-27 18:09 Bug: C-u M-x org-footnote-action sort deletes footnotes used in #+include:’d files [8.2.10 (release_8.2.10 @ /usr/share/emacs/25.3/lisp/org/)] Arne Babenhauserheide
2018-12-28 9:10 ` Nicolas Goaziou
2018-12-28 10:58 ` Arne Babenhauserheide [this message]
2018-12-30 10:01 ` Nicolas Goaziou
2019-01-02 20:12 ` Arne Babenhauserheide
2019-01-03 13:50 ` Nicolas Goaziou
2019-01-03 18:49 ` Arne Babenhauserheide
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877eftex4w.fsf@web.de \
--to=arne_bab@web.de \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).