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

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

[elpa] externals/gnugo 3063f95 041/357: [gnugo] Make proc-status change


From: Stefan Monnier
Subject: [elpa] externals/gnugo 3063f95 041/357: [gnugo] Make proc-status change mode-line elem more informative.
Date: Sun, 29 Nov 2020 14:50:43 -0500 (EST)

branch: externals/gnugo
commit 3063f959400053e27d53fa79de51383908a7b99a
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>

    [gnugo] Make proc-status change mode-line elem more informative.
    
    * packages/gnugo/gnugo.el (gnugo-sentinel): ...here,
    by including the passed-in STRING, w/ ‘font-lock-warning-face’.
---
 gnugo.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnugo.el b/gnugo.el
index 1d1166c..7e39431 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -313,7 +313,11 @@ Handle the big, slow-to-render, and/or uninteresting ones 
specially."
       (let ((buf (process-buffer proc)))
         (when (buffer-live-p buf)
           (with-current-buffer buf
-            (setq mode-line-process '( " [%s]"))
+            (setq mode-line-process
+                  (list " [%s ("
+                        (propertize (car (split-string string))
+                                    'face 'font-lock-warning-face)
+                        ")]"))
             (when (eq proc (gnugo-get :proc))
               (gnugo-put :proc nil))))))))
 



reply via email to

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