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

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

[elpa] externals/lentic 97e1440857 230/333: Mode line update performance


From: ELPA Syncer
Subject: [elpa] externals/lentic 97e1440857 230/333: Mode line update performance speed up.
Date: Tue, 27 Feb 2024 13:00:38 -0500 (EST)

branch: externals/lentic
commit 97e14408576beaeded9d560624f04706b058776e
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>

    Mode line update performance speed up.
    
    Running update-mode-line on every buffer cannot be sensible.
    So just do an "every" update at the end. Perhaps that will be
    faster.
---
 lentic-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lentic-mode.el b/lentic-mode.el
index 041541731f..d4cafb0bcc 100644
--- a/lentic-mode.el
+++ b/lentic-mode.el
@@ -282,8 +282,7 @@ See also `lentic-mode-move-lentic-window'."
                       (lambda (conf)
                         (lentic-mode-line-string conf))
                       lentic-config))
-                  "")))
-  (force-mode-line-update))
+                  ""))))
 
 (defun lentic-mode-buffer-list-update-hook ()
   (if lentic-emergency
@@ -294,7 +293,8 @@ See also `lentic-mode-move-lentic-window'."
        (with-current-buffer
            b
          (lentic-mode-update-mode-line)))
-     (buffer-list))))
+     (buffer-list))
+    (force-mode-line-update t)))
 
 (add-hook 'buffer-list-update-hook
           'lentic-mode-buffer-list-update-hook)



reply via email to

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