From: Jonas Bernoulli <jonas@bernoul.li>
To: emacs-orgmode@gnu.org
Subject: [BUG] ox-texinfo no longer inserts menus if there is no content
Date: Thu, 14 Dec 2023 20:57:44 +0100 [thread overview]
Message-ID: <87le9wd0av.fsf@bernoul.li> (raw)
Hello,
(This came up in 878r9p1ntd.fsf@bernoul.li, on emacs-devel, but it
seems it fell through the cracks.)
If a section only has subsections but no content of its own, then
ox-texinfo no longer generates the section's menu (listing the
subsections). And if the section additionally is part of an appendix,
then the subsections now use @subsection instead of @appendixsubsec.
I looked at the history of org and ox-texinfo.el in particular, but
could not find any code change that would explain that change in
behavior. Org 9.6.8 still works as expected.
---- demo.org -------------------------------------------
* only subsections, no direct content
** sub 1
body
** sub 2
body
* A
:PROPERTIES:
:APPENDIX: t
:END:
** AA only subsections, no direct content
*** AAA
body
---- demo.texi with org release_9.6.8 -------------------
\input texinfo @c -*- texinfo -*-
[...]
@node only subsections no direct content
@chapter only subsections, no direct content
@menu
* sub 1::
* sub 2::
@end menu
@node sub 1
@section sub 1
body
@node sub 2
@section sub 2
body
@node A
@appendix A
@menu
* AA only subsections, no direct content: AA only subsections no direct content.
@end menu
@node AA only subsections no direct content
@appendixsec AA only subsections, no direct content
@menu
* AAA::
@end menu
@node AAA
@appendixsubsec AAA
body
@bye
---- demo.texi with org release_9.6.13-975-gb8d27bb4e ---
\input texinfo @c -*- texinfo -*-
[...]
@node only subsections no direct content
@chapter only subsections, no direct content
@node sub 1
@section sub 1
body
@node sub 2
@section sub 2
body
@node A
@appendix A
@menu
* AA only subsections, no direct content: AA only subsections no direct content.
@end menu
@node AA only subsections no direct content
@appendixsec AA only subsections, no direct content
@node AAA
@subsection AAA
body
@bye
---------------------------------------------------------
bye;)
Jonas
next reply other threads:[~2023-12-14 19:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-14 19:57 Jonas Bernoulli [this message]
2023-12-14 20:11 ` [BUG] ox-texinfo no longer inserts menus if there is no content Ihor Radchenko
2023-12-15 20:37 ` Jonas Bernoulli
2023-12-16 14:11 ` Ihor Radchenko
2023-12-16 16:17 ` Jonas Bernoulli
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=87le9wd0av.fsf@bernoul.li \
--to=jonas@bernoul.li \
--cc=emacs-orgmode@gnu.org \
/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).