[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnugo 5b49aad 316/357: [gnugo int] Use ‘line-end-posit
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnugo 5b49aad 316/357: [gnugo int] Use ‘line-end-position’. |
Date: |
Sun, 29 Nov 2020 14:51:47 -0500 (EST) |
branch: externals/gnugo
commit 5b49aad73ec66f924d5437b740042eaa8e4a7123
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>
[gnugo int] Use ‘line-end-position’.
* packages/gnugo/gnugo.el (gnugo-propertize-board-buffer):
...here, to replace several instances of ‘end-of-line’ plus ‘point’.
---
gnugo.el | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/gnugo.el b/gnugo.el
index 5b27b91..879c85e 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -652,8 +652,8 @@ when you are sure the command cannot fail."
(put-text-property (point) (1+ (point)) 'category (gnugo-f 'tpad))
(skip-chars-forward " ")
(put-text-property (1- (point)) (point) 'category %gpad)
- (put-text-property (point) (progn (end-of-line) (point)) 'category %gspc)
- (forward-char 1)
+ (put-text-property (point) (line-end-position) 'category %gspc)
+ (forward-line 1)
(add-text-properties (1+ (point-min)) (1- (point)) grid-props)
(while (looking-at "\\s-*\\([0-9]+\\)[ ]")
(let* ((row (match-string-no-properties 1))
@@ -714,13 +714,12 @@ when you are sure the command cannot fail."
(end (match-end 2)))
(put-text-property beg end :gnugo-cf (cons (- end beg) prop))
(gnugo-put prop (match-string-no-properties 2))))
- (end-of-line)
- (put-text-property right-empty (point) 'category %rpad)
- (forward-char 1)))
+ (put-text-property right-empty (line-end-position) 'category %rpad)
+ (forward-line 1)))
(add-text-properties (1- (point)) (point-max) grid-props)
(skip-chars-forward " ")
(put-text-property (1- (point)) (point) 'category %gpad)
- (put-text-property (point) (progn (end-of-line) (point))
+ (put-text-property (point) (line-end-position)
'category %gspc)))
(defun gnugo-merge-showboard-results ()
- [elpa] externals/gnugo 4930156 239/357: [gnugo int] Move ‘gnugo-position’ call down-chain., (continued)
- [elpa] externals/gnugo 4930156 239/357: [gnugo int] Move ‘gnugo-position’ call down-chain., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 57faa71 256/357: [gnugo] Don't display "Abdication {en, dis}abled"., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 6edd793 252/357: [gnugo] Make undo commands silently handle overkill., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo b0b18d0 254/357: [gnugo int] Decorate w/ plist instead of alist., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo b07f602 248/357: [gnugo int] Move ‘gnugo--passp’ earlier in file., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 5524a47 262/357: [gnugo int] Maintain current buffer in ‘gnugo--finish-move’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 2b8d5aa 258/357: [gnugo int] Compute "Abd" in mode-line at time of change., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 6a7af2a 274/357: [gnugo int] Decruft: Presume ‘display-images-p’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 35571e3 287/357: [gnugo int] Use private obarray for :all-yy elems, display props., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 0473d72 264/357: [gnugo int] Comment munging; nfc., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 5b49aad 316/357: [gnugo int] Use ‘line-end-position’.,
Stefan Monnier <=
- [elpa] externals/gnugo 7544ffe 311/357: [gnugo maint] Add copyright policy to HACKING; nfc., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 1ff7a11 307/357: [gnugo maint] Add ‘URL’ header; trim Hacking URL; drop Tip Jar URL., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 10d29a9 301/357: [gnugo] Only set AP for modified gametrees in the collection., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo da98bc8 288/357: [gnugo int] Replace COND expression w/ IF., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 26c849f 330/357: [gnugo int] Decruft: Don't declare hook and keymap vars., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo b5b3fd6 337/357: [gnugo int] Reduce ‘setq’ usage., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo c885c9c 020/357: [gnugo int] Avoid variable FORMAT for ‘message’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo fce1fb0 077/357: [gnugo sgf] Fix bug: Output subtrees correctly., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 5ca7efb 099/357: [gnugo int] Remove redundant game-over condition check., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 7fee3b2 104/357: [gnugo] Move "1 or 2" calculation into ‘gnugo-magic-undo’., Stefan Monnier, 2020/11/29