X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/9a378dacf0b34221bb7c252dc20ff70b388fbb31..731ee86112be428017fcd91d8b8ac0d4fcf6d37c:/packages/gnugo/gnugo.el diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el index 34e57dadd..59d60df3b 100644 --- a/packages/gnugo/gnugo.el +++ b/packages/gnugo/gnugo.el @@ -414,7 +414,7 @@ Handle the big, slow-to-render, and/or uninteresting ones specially." (if (string= "" d) ".+\n" "")))) - (while (re-search-forward rx (point-max) t) + (while (re-search-forward rx nil t) (let ((pos (get-text-property (string-to-number (match-string 1)) 'gnugo-position buf))) (delete-region (+ 2 (match-beginning 0)) (point)) @@ -613,11 +613,11 @@ when you are sure the command cannot fail." (setplist (gnugo-f 'ispc) (and new '(display (space :width 0)))) (gnugo-put :highlight-last-move-spec (if new - '((lambda (p) - (get (gnugo-yy (get-text-property p 'gnugo-yin) - (get-text-property p 'gnugo-yang) - t) - 'display)) + `(,(lambda (p) + (get (gnugo-yy (get-text-property p 'gnugo-yin) + (get-text-property p 'gnugo-yang) + t) + 'display)) 0 delete-overlay) (gnugo-get :default-highlight-last-move-spec))) ;; a kludge to be reworked another time perhaps by another gnugo.el lover @@ -1907,7 +1907,7 @@ to the last move, as a comment." (cl-flet ((yep (pretty moment) (push (format-time-string - (concat pretty ": %Y-%m-%d %H:%M:%S %z\n") + (concat pretty ": %F %T %z\n") moment) blurb))) (yep "Game start" beg) @@ -2279,7 +2279,7 @@ See `gnugo-board-mode' for a full list of commands." (when (and (zerop handicap) actually) (setq handicap (string-to-number (cadr actually))))) (r! :SZ board-size - :DT (format-time-string "%Y-%m-%d") + :DT (format-time-string "%F") :RU (if (member "--chinese-rules" args) "Chinese" "Japanese") @@ -2354,7 +2354,7 @@ See `gnugo-board-mode' for a full list of commands." (goto-char (point-min)) (save-excursion (while (re-search-forward "^ *[*] \\([a-zA-Z_]+\\)\\(:.*\\)*\n" - (point-max) t) + nil t) (unless pad (setq pad (make-string (- (match-beginning 1) (match-beginning 0))