aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorMorgan Smith2022-09-06 21:18:51 -0400
committerJim Porter2023-10-28 15:46:08 -0700
commite08238cdd74719d4cd99cf5a4f743eb8c6d1d251 (patch)
tree2342e11a14c5befeb975071ed600f35685ddd234 /java
parent72d040ce7db94979dd2baa951919478faef928a0 (diff)
downloademacs-e08238cdd74719d4cd99cf5a4f743eb8c6d1d251.tar.gz
emacs-e08238cdd74719d4cd99cf5a4f743eb8c6d1d251.zip
Speed up Eshell smart display module
em-smart was forcibly re-displaying the screen upwards of 500 times per screen of output. This caused the Eshell to feel quite slow when the module was in use. By using fewer hooks and never explicitly calling 'redisplay' (which was unnecessary) the performance issues go away (bug#57367). lisp/eshell/em-smart.el: (em-smart-unload-hook, eshell-smart-unload-hook): Remove 'eshell-smart-scroll' instead of the now deleted 'eshell-refresh-windows'. (eshell-smart-displayed, eshell-currently-handling-window) (eshell-refresh-windows): Delete. (eshell-smart-scroll-window): Rename to 'eshell-smart-scroll-windows' and add a bunch of logic originally from 'eshell-refresh-windows'. (eshell-smart-initialize): Don't add a hook onto 'window-scroll-functions'. Replace 'eshell-refresh-windows' with 'eshell-smart-scroll-windows'. (eshell-smart-display-setup): Don't refresh windows. (eshell-smart-redisplay): Rename to 'eshell-smart-scroll'. Delete 'eobp' case.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions