]> git.eshelyaron.com Git - emacs.git/commit
ox-texinfo:: Require only TEXINFO_DIR_CATEGORY
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 2 Mar 2024 19:48:29 +0000 (14:48 -0500)
committerEshel Yaron <me@eshelyaron.com>
Tue, 5 Mar 2024 15:09:59 +0000 (16:09 +0100)
commit85a4d2138eaf2309c7f378c8d892a1f82a4801b9
tree25253e2a61e9d341d2a210f5a318cc59db37814d
parentdf556b706b67aaa9ebfbccbb08d55f646bb48106
ox-texinfo:: Require only TEXINFO_DIR_CATEGORY

Until now @dircategory/@direntry entries were added only if
both TEXINFO_DIR_CATEGORY and TEXINFO_DIR_TITLE were set.
And the setting of TEXINFO_DIR_TITLE had to be careful to
provide exactly the right syntax.

This patch changes various things in this regard:
- Only require TEXINFO_DIR_CATEGORY in order to generate
  `@dircategory` and `@direntry`.
- Use the document title by default if TEXINFO_DIR_DESC is missing.
- Use the filename by default when TEXINFO_DIR_TITLE is missing.
- Try and make it harder to provide a direntry that does not
  have the right format or refers to a different filename than
  the one we're outputting to.

* lisp/org/ox-texinfo.el: Remove redundant `:group` arguments.
Prefer #' to quote function names.
(org-texinfo-template): Use sane defaults for `@direntry`.

* doc/misc/org.org (Texinfo specific export settings): Adjust accordingly.

(cherry picked from commit 5254c582efb3e7171e955dde653e7530d2d3ffef)
doc/misc/org.org
lisp/org/ox-texinfo.el