[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnugo fef1847 040/357: [gnugo] Use special constructs f
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnugo fef1847 040/357: [gnugo] Use special constructs for keybindings in docstrings. |
Date: |
Sun, 29 Nov 2020 14:50:43 -0500 (EST) |
branch: externals/gnugo
commit fef18477e5c880cbe659762df34e0c9f6364b44e
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>
[gnugo] Use special constructs for keybindings in docstrings.
* packages/gnugo/gnugo.el (gnugo-board-mode, gnugo): Rewrite docstring.
---
gnugo.el | 51 ++++-----------------------------------------------
1 file changed, 4 insertions(+), 47 deletions(-)
diff --git a/gnugo.el b/gnugo.el
index 15143ba..1d1166c 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -1618,54 +1618,9 @@ NOTE: At this time, GTP command handling specification
is still
(defun gnugo-board-mode ()
"Major mode for playing GNU Go.
Entering this mode runs the normal hook `gnugo-board-mode-hook'.
-In this mode, keys do not self insert. Default keybindings:
+In this mode, keys do not self insert.
- ? View this help.
-
- RET or SPC Run `gnugo-move'.
-
- q or Q Quit (the latter without confirmation).
-
- R Resign.
-
- u Run `gnugo-undo-two-moves'.
-
- U Pass to `gnugo-magic-undo' either the board position
- at point (if no prefix arg), or the prefix arg converted
- to a number. E.g., to undo 16 moves: `C-u C-u U' (see
- `universal-argument'); to undo 42 moves: `M-4 M-2 U'.
-
- C-l Run `gnugo-refresh'.
-
- _ or M-_ Bury the Board buffer (when the boss is near).
-
- P Run `gnugo-pass'.
-
- i Toggle display using XPM images (if supported).
-
- w Run `gnugo-worm-stones'.
- d Run `gnugo-dragon-stones'.
-
- W Run `gnugo-worm-data'.
- D Run `gnugo-dragon-data'.
-
- t Run `gnugo-toggle-dead-group'.
-
- ! Run `gnugo-estimate-score'.
-
- : or ; Run `gnugo-command' (for GTP commands to GNU Go).
-
- = Display board position under point (if valid).
-
- h Run `gnugo-move-history'.
-
- F Run `gnugo-display-final-score'.
-
- s Run `gnugo-write-sgf-file'.
- or C-x C-w
- or C-x C-s
-
- l Run `gnugo-read-sgf-file'."
+\\{gnugo-board-mode-map}"
(switch-to-buffer (generate-new-buffer "(Uninitialized GNUGO Board)"))
(buffer-disable-undo) ; todo: undo undo undoing
(kill-all-local-variables)
@@ -1785,6 +1740,8 @@ In this mode, keys do not self insert. Default
keybindings:
"Run gnugo in a buffer, or resume a game in progress.
Prefix arg means skip the game-in-progress check and start a new
game straight away.
+\\<gnugo-board-mode-map>
+To play, use \\[gnugo-move] to place a stone or \\[gnugo-pass] to pass.
You are queried for additional command-line options (Emacs supplies
\"--mode gtp --quiet\" automatically). Here is a list of options
- [elpa] externals/gnugo f84b823 018/357: [gnugo maint] Update a musing item in HACKING; nfc., (continued)
- [elpa] externals/gnugo f84b823 018/357: [gnugo maint] Update a musing item in HACKING; nfc., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 0838a13 021/357: [gnugo gtp int] Use :post-thunk instead of :post-hook., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo e16a8d5 031/357: [gnugo int] Add abstraction: gnugo--unclose-game, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 28da1b4 035/357: [gnugo int] Use ‘dolist’ and ‘destructuring-bind’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 08b2a66 017/357: [gnugo] Indicate buffer not modified after save., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 9893ff1 027/357: [gnugo int] Hang the sync-return-stash on the process object., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo b8b8763 037/357: [gnugo maint] Update "next" in HACKING; nfc., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo a4b96a1 024/357: [gnugo int] Use ‘number-sequence’ more., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 402bf68 039/357: [gnugo] Don't show underscore in group-animation message., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 7647c9c 062/357: [gnugo int] Avoid redundant calls to ‘gnugo-get’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo fef1847 040/357: [gnugo] Use special constructs for keybindings in docstrings.,
Stefan Monnier <=
- [elpa] externals/gnugo 5c8f31d 043/357: [gnugo maint] Update HACKING; nfc., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 2d4c9ad 046/357: [gnugo] New command: ‘_’ and ‘M-_’ (gnugo-boss-is-near), Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 02c55b7 054/357: [gnugo] Release: 2.3.1, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo c479509 044/357: [gnugo] Bind ‘DEL’ to ‘gnugo-undo-two-moves’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 9748703 060/357: [gnugo int] Elide single-use local var., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 6573d16 065/357: [gnugo int] Add abstraction: gnugo--compare-strings, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo a949e26 071/357: [gnugo int] Rename arg from SWITCH to ME-NEXT., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 558d778 072/357: [gnugo] Fix bug: Handle property value type ‘none’ normally., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 9469952 075/357: fixup! [gnugo sgf] Move gratuitous newline from after to before (sub)trees., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 4f96ca6 076/357: [gnugo sgf int] Add abstractions: seek, seek-into, Stefan Monnier, 2020/11/29