From: Stefan Monnier Date: Fri, 13 Dec 2024 21:14:45 +0000 (-0500) Subject: * lisp/org/ox-texinfo.el (org-texinfo-template): Fix direntry format X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e5f2d9a0b9530e33041903fdbb42e6c46db1355f;p=emacs.git * lisp/org/ox-texinfo.el (org-texinfo-template): Fix direntry format Apparently I was confused and `* FILE. DESCRIPTION` is not a valid format, so always use the longer form. (cherry picked from commit 5923d8ebef93075e053cf50e17b86d34731fe777) --- diff --git a/lisp/org/ox-texinfo.el b/lisp/org/ox-texinfo.el index 6adee9fca3f..deceeca8947 100644 --- a/lisp/org/ox-texinfo.el +++ b/lisp/org/ox-texinfo.el @@ -826,9 +826,7 @@ holding export options." ;; `dn' is presumed to be just the DIRNAME part, so generate ;; either `* DIRNAME: (FILENAME).' or `* FILENAME.', whichever ;; is shortest. - ((and dn (not (equal dn file))) - (format "* %s: (%s)." dn (or file dn))) - (t (format "* %s." file))))) + (t (format "* %s: (%s)." dn (or file dn)))))) (concat "@dircategory " dircat "\n" "@direntry\n" (let ((dirdesc