emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org f918ba1: Merge branch 'maint'


From: ELPA Syncer
Subject: [elpa] externals/org f918ba1: Merge branch 'maint'
Date: Mon, 19 Apr 2021 08:57:10 -0400 (EDT)

branch: externals/org
commit f918ba1094c8a12c1e75f09525ed7651b8c36b58
Merge: edadbb8 a89d96e
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Commit: Nicolas Goaziou <mail@nicolasgoaziou.fr>

    Merge branch 'maint'
---
 lisp/ox-texinfo.el | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el
index 5531653..27bcfaa 100644
--- a/lisp/ox-texinfo.el
+++ b/lisp/ox-texinfo.el
@@ -489,16 +489,18 @@ node or anchor name is unique."
          ;; Org exports deeper elements before their parents.  If two
          ;; node names collide -- e.g., they have the same title --
          ;; within the same hierarchy, the second one would get the
-         ;; shorter node name.  This is counter-intuitive.
-         ;; Consequently, we ensure that every parent headline get
-         ;; its node beforehand. As a recursive operation, this
+         ;; smaller node name.  This is counter-intuitive.
+         ;; Consequently, we ensure that every parent headline gets
+         ;; its node beforehand.  As a recursive operation, this
          ;; achieves the desired effect.
          (let ((parent (org-element-lineage datum '(headline))))
            (when (and parent (not (assq parent cache)))
              (org-texinfo--get-node parent info)
              (setq cache (plist-get info :texinfo-node-cache))))
-         ;; Ensure NAME is unique and not reserved node name "Top".
-         (while (or (equal name "Top") (rassoc name cache))
+         ;; Ensure NAME is unique and not reserved node name "Top",
+          ;; no matter what case is used.
+         (while (or (string-equal "Top" (capitalize name))
+                     (rassoc name cache))
            (setq name (concat basename (format " (%d)" (cl-incf salt)))))
          (plist-put info :texinfo-node-cache (cons (cons datum name) cache))
          name))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]