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

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

[elpa] externals/gnugo e644695 203/357: [gnugo] Increase S/N for ‘C-u F


From: Stefan Monnier
Subject: [elpa] externals/gnugo e644695 203/357: [gnugo] Increase S/N for ‘C-u F’ comment.
Date: Sun, 29 Nov 2020 14:51:22 -0500 (EST)

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

    [gnugo] Increase S/N for ‘C-u F’ comment.
    
    * packages/gnugo/gnugo.el (gnugo-display-final-score):
    Omit "The game is over.  " and lines w/ start/end time.
---
 gnugo.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnugo.el b/gnugo.el
index db3b9d5..5cb0024 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -2157,12 +2157,15 @@ to the last move, as a comment."
       (let ((node (car (aref (gnugo-get :monkey) 0))))
         (gnugo--decorate
          (delq (assq :C node) node)
-         (with-temp-buffer
+         (with-temp-buffer              ; lame
            (insert blurb)
+           (when (search-backward "\n\nGame start:" nil t)
+             (delete-region (point) (point-max)))
            (cl-flet ((rep (old new)
                           (goto-char (point-min))
                           (while (search-forward old nil t)
                             (replace-match new))))
+             (rep "The game is over.  " "")
              (rep "territory" "T")
              (rep "captures"  "C")
              (rep "komi"      "K"))



reply via email to

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