emacs-diffs
[Top][All Lists]
Advanced

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

master 34f2878: Change eshell-mode mode-line-format insinuation


From: Lars Ingebrigtsen
Subject: master 34f2878: Change eshell-mode mode-line-format insinuation
Date: Wed, 24 Nov 2021 12:38:23 -0500 (EST)

branch: master
commit 34f2878ce25a74c1283266b67575a56554684be5
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Change eshell-mode mode-line-format insinuation
    
    * lisp/eshell/esh-mode.el (eshell-mode): Tweak how the mode line
    is altered after recent mode-line-format changes.
---
 lisp/eshell/esh-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index a054cd6..cae5236 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -308,7 +308,7 @@ and the hook `eshell-exit-hook'."
     (make-local-variable 'eshell-command-running-string)
     (let ((fmt (copy-sequence mode-line-format)))
       (setq-local mode-line-format fmt))
-    (let ((mode-line-elt (memq 'mode-line-modified mode-line-format)))
+    (let ((mode-line-elt (cdr (memq 'mode-line-front-space mode-line-format))))
       (if mode-line-elt
          (setcar mode-line-elt 'eshell-command-running-string))))
 



reply via email to

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