]> git.eshelyaron.com Git - emacs.git/commit
allout.el: fix subtree expose numbering bug
authorMattias Engdegård <mattiase@acm.org>
Tue, 11 Apr 2023 09:50:17 +0000 (11:50 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 11 Apr 2023 09:50:17 +0000 (11:50 +0200)
commit5dab172a17320e93332ae6545738b37f4224f2de
tree75e1c1bf7cfc780b50e7749130851a137007ce3b
parentebac67129e86ce201d88debb1a8c9d6924215e84
allout.el: fix subtree expose numbering bug

* lisp/allout.el (allout-process-exposed): Reverse the list of indices
properly so that the correct numbering for nodes in a subtree is used.
Avoid destructive reversing; the list may be a constant (literal).
This flaw was revealed by an ignored-return-value warning.
lisp/allout.el