]> git.eshelyaron.com Git - emacs.git/commit
* lisp/outline.el: Optimize performance of S-TAB (bug#57813)
authorJuri Linkov <juri@linkov.net>
Fri, 16 Sep 2022 16:16:10 +0000 (19:16 +0300)
committerJuri Linkov <juri@linkov.net>
Fri, 16 Sep 2022 16:16:10 +0000 (19:16 +0300)
commitdd1aa62642e9c121c783b4973c1289d409d915ef
tree0df783aed1b607cbd550ec79b401663dc2bbf44c
parent2053e350f3d39e312a6a4b18c05fe8abefc5ee95
* lisp/outline.el: Optimize performance of S-TAB (bug#57813)

(outline-hide-subtree): Don't call outline--insert-close-button, because
it's handled by outline--fix-up-all-buttons called from outline-flag-region.
(outline-show-subtree): Don't call outline--insert-open-button, same reason.
(outline--fix-up-all-buttons): Check invisible outlines explicitly instead of
using slow outline--cycle-state.
lisp/outline.el